Using doctext is easy. For example, the command
doctext foo.cwill generate Unix man pages for all of the commented routines in the file foo.c. But before this will do you any good, you will need to add some structured comments to your file.