A simple file splitter written in C