File archiving program implemented in C