firestring_conf_parse(3)

firestring_conf_parse3

Read and parse a configuration file

Usage

#include <firestring.h>
-lfirestring

struct firestring_conf_t *firestring_conf_parse(const char *filename)

Overview

firestring_conf_parse() attempts to read a configuration from filename and parse the results into a structure that it then returns.

The support configuration format is fairly flexible:
# Configuration file example
# These are comments
variable_name = value
variable_name2=value
variable_name3="quoted value"
variable_name4="array value 1"
variable_name4="array value 2"

include as a variable name is special; it causes firestring to parse the file referenced by the value, overriding any previous values (although they are still accessible as arrays).

Return value

Returns a pointer to a structure containing the data read from the config file, or NULL if the file cannot be opened.

Releases

Unchanged in 6 releases since Debian 3.1 (Sarge).

  1. 3.1–8

Author

Ian Gulliver <[email protected]>

From libfirestring-dev 0.9.12-8 in Debian 8 (Jessie). Parsed by carta from the page's man source.