This article is from the Literate Programming FAQ, by David B. Thompson email@example.com with numerous contributions by others.
DOS, OS/2, Unix (gcc) - CWEB source included
Anonymous ftp from CTAN:/web/c_cpp/c2cweb
c2cweb will transform plain C or C++ code into a CWEB file to
get a pretty formatted output. A modified CWEAVE (which
transforms the CWEB file into a TeX file, see below) is included
Werner Lemberg <firstname.lastname@example.org>