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