Made more modular after rearranging a lot and switching from FILE *s to file descriptors.
Made more modular after rearranging a lot and switching from FILE *s to file descriptors.

tchieze/filedez,tchieze/filedez