Command line utility for concatenating input files into an output file in C