3

In some C-source file I've seen comments in the format:

/**
 *  @bla bla bla
 *  bla bla..
 */

Someone told me that if I comment my .c / .h files properly, then with a certain tool I can autogenerate man pages from those files automatically.

Does anybody know if this is possible? (How to do, which software should I use, etc.)

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
user1584773
  • 699
  • 7
  • 19

3 Answers3

6

It looks like you are searching for doxygen

albert
  • 8,285
  • 3
  • 19
  • 32
RageD
  • 6,693
  • 4
  • 30
  • 37
3

Those comments you see are probably doxygen markup. That can produce man, HTML, and a variety of other formats.

albert
  • 8,285
  • 3
  • 19
  • 32
chrisaycock
  • 36,470
  • 14
  • 88
  • 125
2

Try doxygen

http://www.doxygen.nl/index.html

The syntax you showed is doxygen. AFAIK, it can generate man pages (and HTML and LaTeX).

albert
  • 8,285
  • 3
  • 19
  • 32
Josh Petitt
  • 9,371
  • 12
  • 56
  • 104