configFileLoad
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
NAME
configFileLoad - parse a configuration file
SYNOPSIS
#include
<your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
const tOptionValue* configFileLoad(char const* fname);
DESCRIPTION
This routine will load a named configuration file and parse the text as a hierarchically valued option. The option descriptor created from an option definition file is not used via this interface. The returned value is "named" with the input file name and is of type "OPARG_TYPE_HIERARCHY". It may be used in calls to optionGetValue(), optionNextValue() and optionUnloadNested().
fname |
the file to load |
RETURN VALUE
An allocated, compound value structure
ERRORS
If the file cannot be loaded or processed, NULL is returned and errno is set. It may be set by a call to either open(2) mmap(2) or other file system calls, or it may be:
ENOENT − the file was not found.
ENOMSG − the file was empty.
EINVAL − the file contents are invalid −- not properly formed.
ENOMEM − not enough memory to allocate the needed structures. @end itemize
SEE ALSO
The info
documentation for the -lopts library.
ao_string_tokenize(3), optionFileLoad(3),
optionFindNextValue(3), optionFindValue(3), optionFree(3),
optionGetValue(3), optionLoadLine(3), optionMemberList(3),
optionNextValue(3), optionOnlyUsage(3), optionProcess(3),
optionRestore(3), optionSaveFile(3), optionSaveState(3),
optionUnloadNested(3), optionVersion(3), strequate(3),
streqvcmp(3), streqvmap(3), strneqvcmp(3),
strtransform(3),
More Linux Commands
manpages/yn.3.html
yn(3) - Bessel functions of the second kind - Linux man page
The y0() and y1() functions return Bessel functions of x of the second kind of orders 0 and 1, respectively. The yn() function returns the Bessel function of x
manpages/mesg.1.html
mesg(1) - display (do not display) messages from other users
The mesg utility is invoked by a user to control write access others have to the terminal device associated with standard error output. If write access is allow
manpages/glDepthFunc.3gl.html
glDepthFunc(3gl) - specify the value used for depth buffer c
glDepthFunc specifies the function used to compare each incoming pixel depth value with the depth value present in the depth buffer. The comparison is performed
manpages/strnlen.3.html
strnlen(3) - determine the length of a fixed-size string....
The strnlen() function returns the number of bytes in the string pointed to by s, excluding the terminating null byte (\0), but at most maxlen. In doing this, s
manpages/glColor4d.3gl.html
glColor4d(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va
manpages/systemd.automount.5.html
systemd.automount(5) - systemd automount configuration files
A unit configuration file whose name ends in .automount encodes information about a file system automount point controlled and supervised by systemd. This man p
manpages/pam_listfile.8.html
pam_listfile(8) - deny or allow services based on an arbitra
pam_listfile is a PAM module which provides a way to deny or allow services based on an arbitrary file. The module gets the item of the type specified -- user s
manpages/lneato.1.html
lneato(1) - A Customizable Graph Editor - Linux manual page
lneato is a graph editor for the X Window System. It may be run as a standalone editor, or as a front end for applications that use graphs. It can control multi
manpages/git-send-email.1.html
git-send-email(1) - Send a collection of patches as emails
Takes the patches given on the command line and emails them out. Patches can be specified as files, directories (which will send all files in the directory), or
manpages/border.3ncurses.html
border(3ncurses) - create curses borders, horizontal and ver
The border, wborder and box routines draw a box around the edges of a window. Other than the window, each argument is a character with attributes: ls - left sid
manpages/fonttosfnt.1.html
fonttosfnt(1) - Wrap a bitmap font in a sfnt (TrueType) wrap
Wrap a bitmap font or a set of bitmap fonts in a sfnt (TrueType or OpenType) wrapper. OPTIONS -v Be verbose. -c Do not crop glyphs. This usually increases file
manpages/pair_content.3ncurses.html
pair_content(3ncurses) - curses color manipulation routines
Overview curses support color attributes on terminals with that capability. To use these routines start_color must be called, usually right after initscr. Color
