Using groff to generate pdf man pages for a c program file

286 views Asked by At

Give a working c code how to use groff to generate man pages for it in pdf format
. Is it something that can be automatically generated or does it require any manual
file creation? The only instruction I have is to use groff with the “man” macro package

1

There are 1 answers

0
Ljm Dullaart On

Groff (with the macros for man pages) format the text in the appropriate way. You still need to write the text. The man macros ore or less force you to write the pages in the correct format.

There is no way that you can generate man pages from a C program automatically. The program tells the computer what to do, the man pages tell the user what to do. These are completely different concepts.