ORT_CONFIG_FREE(3)

NAME
ort_config_free - free openradtool configuration

LIBRARY
libort

SYNOPSIS
#include <sys/queue.h>
#include <stdio.h>
#include <ort.h>
void
ort_config_free(struct config *cfg);

DESCRIPTION
Free a configuration file to be allocated with ort_config_alloc(3). After being invoked, cfg may not be used. If cfg is NULL, this does nothing.

EXAMPLES
A simple scenario of creating a configuration, parsing standard input, linking, then performing some task is as follows.

    struct config *cfg;
    if ((cfg = ort_config_alloc()) == NULL)
      err(1, NULL);
    if ((cfg = ort_parse_file_r(cfg, stdin, "<stdin>"))
      errx(1, "failed parsing");
    if (!ort_parse_close(cfg))
      errx(1, "failed linking");
    /* Do something with the configuration. */
    ort_config_free(cfg);

SEE ALSO
ort(3)