sample program in C
no vote
To illustrate, here is a simplified version of the UNIX program cp , which copies one file to another. Our version copies only one file, it does not permit the second argument to be a directory, and it invents permissions instead of copying them.