I added a makefile.  Holton's suggestions for print.c don't seem feasible, since the only way I can see for printing an overlong line is to use a substring.  The header print function works, though.