ORT-C-MANPAGE(1) General Commands Manual ORT-C-MANPAGE(1)

ort-c-manpagegenerate C API documentation

ort-c-manpage [-jJv] [config...]

The ort-c-manpage utility accepts ort(5) config files, defaulting to standard input, and generates C API documentation. Its arguments are as follows:

Output kcgijson(3) JSON export function declaration documentation.
Output JSON import function declaration documentation.
Output kcgi(3) validation variables documentation.

The output is in mdoc(7). It is arranged into sub-sections beneath the DESCRIPTION.

The documentation begins with data structures (describing roles, structures, enumerations, and bit-fields where applicable). It continues with database input, which consists of queries, updates, and deletes where applicable.

If -J is enabled, output continues with JSON input functions using the built-in JSMN implementation. If -j is enabled, it continues with JSON output, which consists of the JSON output using kcgijson(3). Lastly, -v continues with validation variables.

The DESCRIPTION section is conditionally followed by a SEE ALSO.

The ort-c-manpage utility exits 0 on success, and >0 if an error occurs.

To quickly browse the C API documentation for a given configuration on mandoc(1) systems, simply run:

ort-c-manpage db.ort | mandoc | less

Or on systems using groff(1) for manpage rendering:

ort-c-manpage db.ort | groff -Tutf8 -mandoc -itk | less -R

ort-c-header(1), ort-c-source(1), kcgi(3), kcgijson(3), ort(5), mdoc(7)

October 25, 2021 OpenBSD 6.7