The chain program experiments with the forking of child processes by manipulating several command-line arguments. 
The user can specify the number of processes, the number of characters to input from stdin, the delay before
executing fprintf, and the number of iterations that fprintf executes for every process.

To compile, execute
  $ make
in the same folder as the chain.c file. 

To delete object and executable, then execute
  $ make clean
in the same folder as the executable and object files.

Usage provided by professor:

chain [-h] [-p nprocs] [-c nchars] [-s sleeptime] [-i niters] < textfile

nprocs Number of processes [default 4]
nchars Number of characters read into the buffer [default 80]
sleeptime Time to sleep in each iteration [default 3s]
niters Number of iterations in the loop
textfile File containing text to be read through stdin
