A simple file copying program from the book "The C Programming Language" by Brian W. Kernighan and Dennis M. Ritchie. This program copies its input to its output one character at a time.
In order to compile the program you need C installed on your system. On Mac you can compile this program by using the following command:
sudo clang file_copying.c
This command will create a new file named a.out. Then you can run the program using the following command:
./a.out
Installed c programming language.
- Brian W. Kernighan
- Dennis M. Ritchie
All rights belong to the authors of the book.