configFileLoad - parse a configuration file


   #include <your-opts.h>
   cc [...] -o outfile infile.c -lopts [...]

   const tOptionValue * configFileLoad(char const * fname);


   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


   An allocated, compound value structure


   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


   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),                              optionPrintVersion(3),
   optionPrintVersionAndReturn(3),   optionProcess(3),   optionRestore(3),
   optionSaveFile(3),      optionSaveState(3),      optionUnloadNested(3),
   optionVersion(3),     strequate(3),     streqvcmp(3),     streqvmap(3),
   strneqvcmp(3), strtransform(3),

                              2016-10-30                 configFileLoad(3)

More Linux Commands

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

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

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

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

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

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

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

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

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

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

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

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

We can't live, work or learn in freedom unless the software we use is free.