Test first: basic C-style output

forget the closures: let's start with some a simple conversions to the
C-style syntax.