Created C library for IO calls