Also, increase STDIO_BUFSIZE to 0x40 so that those while loops work.
In C this time. Python/Perl code is barely terser than C for these little tools. Why bother with interpreted?