Subject: How to format C-Code?
To: None <current-users@NetBSD.ORG>
From: Carsten Hammer <>
List: current-users
Date: 09/30/1996 11:02:35
what options are there to format C sourcecode for later printing
(postscript or dvi)?
I tried 

indent -troff filename.c |troff >/tmp/

but this does not give postscript output as it is stated in the
troff manpage (look for -Tname option).

indent -troff filename.c |groff -Tps >/tmp/

gives something that is nearly what i want but all newlines are
missing it seems.

indent -troff filename.c |troff -Tps >/tmp/

gives not even a postscriptfile.

C-commands should be bold and function calls with many parameters should be
broken into more than one line. This breaking does not work for me

        localanalyse = Analyseinit(projekt, 4, color, 0.0, prozent, formular, mode, transform, AUSLASSUNG);

this is processing output of indent. Indent does not break this line.

any hints?