LOWDOWN_NROFF_NEW(3)

NAME
lowdown_nroff_new - allocate a roff renderer for lowdown documents

LIBRARY
liblowdown

SYNOPSIS
#include <sys/queue.h>
#include <stdio.h>
#include <lowdown.h>
void *
lowdown_nroff_new(const struct lowdown_opts *opts);

DESCRIPTION
Allocates a roff renderer (using the man or ms macros) using the flags in opts, which may be NULL in which case all fields are zero and the renderer type is LOWDOWN_MS. If the type is not LOWDOWN_MAN or LOWDOWN_MS, it defaults to LOWDOWN_MS. The renderer must be freed with a call to lowdown_nroff_free(3). The returned pointer may be used with multiple invocations of lowdown_nroff_rndr(3).

RETURN VALUES
Always returns a valid pointer.

SEE ALSO
lowdown(3), lowdown_nroff_free(3), lowdown_nroff_rndr(3), groff_ms(7), man(7)