This is a simple C program that copies the contents of one ASCII (text) file onto another file. It is similar to Unix’s cp  command.

This C program is called with two parameters i.e. the names of two files (fin and fout). The contents of the file referenced in second parameter are copied onto the file which is referenced by first parameter.