1 2 3
Thought I'd also have a go at translating ch-1.pl into C.. Produces identical (non-debugging) output to my ch-1.pl:-)