Thought I'd also have a go at translating ch-1.pl and ch-2.pl into C.. Both produce identical (non-debugging) output to my Perl originals. Both use the command-line argument processing module args.[ch].