Finally, your program should handle errors gracefully. For example, if the command line arguments are supposed to be files, and the user specifies a non-file, you should print a descriptive error message on standard error, and either exit or not exit as you see fit.
If you are having trouble starting this one, look at allalpha and allalpha2. Both of these print out all alphawords from standard input. Note that allalpha2 is much more efficient.
It's ok to use a temporary file if you want here. Make sure it is deleted when the program is done. Usually I name my temporary files /tmp/$USER.$$.
Make sure that your primspell doesn't say that subsets of words in /usr/dict/words are ok. For example, the word "ll" should be flagged as a misspelling.
For example:
UNIX> linehisto /jade/homes/buckner/cs291/Cat/greptest jade/homes/buckner/cs291/Cat/greptest Blank lines: 0 Lines with 1 to 10 characters: 3 Lines with 11 to 80 characters: 2 Lines with over 80 characters: 0 UNIX>(Hint: you can call grep on the file more than once).