And even if you avoid external libraries, you still need to interact with the kernel to do I/O, and that involves system calls that are also non-portable.