The
roff library processes lines of
roff(7) input.
In general, applications initiate a parsing sequence with
roff_alloc(), parse each line in a document with
roff_parseln(), close the parsing session with
roff_endparse(), and finally free all allocated memory with
roff_free(). The
roff_reset() function may be used in order to reset the parser for another input sequence.
The
roff_parseln() function should be invoked before passing a line into the
mdoc(3) or
man(3) libraries.
See the
EXAMPLES section for a full example.