optionFileLoad(3)


NAME

   optionFileLoad - Load the locatable config files, in order

SYNOPSIS

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

   int optionFileLoad(tOptions * opts, char const * prog);

DESCRIPTION

   This   function   looks   in   all  the  specified  directories  for  a
   configuration file ("rc" file or "ini" file) and  processes  any  found
   twice.   The  first  time  through, they are processed in reverse order
   (last file first).  At that time, only "immediate action" configurables
   are  processed.   For  example,  if  the  last named file specifies not
   processing any more configuration files,  then  no  more  configuration
   files  will  be processed.  Such an option in the first named directory
   will have no effect.

   Once the immediate action configurables have  been  handled,  then  the
   directories  are  handled in normal, forward order.  In that way, later
   config files can override the settings of earlier config files.

   See the AutoOpts documentation for a thorough discussion of the  config
   file format.

   Configuration files not found or not decipherable are simply ignored.

   opts   program options descriptor

   prog   program name

RETURN VALUE

   0 -> SUCCESS, -1 -> FAILURE

ERRORS

   Returns  the  value,  "-1"  if the program options descriptor is out of
   date or indecipherable.   Otherwise,  the  value  "0"  will  always  be
   returned.

SEE ALSO

   The info documentation for the -lopts library.
   ao_string_tokenize(3),    configFileLoad(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                 optionFileLoad(3)


More Linux Commands

manpages/ioprio_get.2.html
ioprio_get(2) - get/set I/O scheduling class and priority...
The ioprio_get() and ioprio_set() system calls respectively get and set the I/O scheduling class and priority of one or more threads. The which and who argument

manpages/time.7.html
time(7) - overview of time and timers - Linux manual page...
Real time and process time Real time is defined as time measured from some fixed point, either from a standard point in the past (see the description of the Epo

manpages/Mail::SpamAssassin::BayesStore::PgSQL.3pm.html
Mail::SpamAssassin::BayesStore::PgSQL(3pm) - PostgreSQL Spec
This module implements a PostgreSQL specific bayesian storage module. It subclasses Mail::SpamAssassin::BayesStore::SQL and overrides any methods which makes SQ

manpages/gnutls_x509_privkey_export_ecc_raw.3.html
gnutls_x509_privkey_export_ecc_raw(3) - API function........
This function will export the ECC private keys parameters found in the given structure. The new parameters will be allocated using gnutls_malloc() and will be s

manpages/pnmsplit.1.html
pnmsplit(1) - split a multi-image PNM file into multiple sin
This program is part of Netpbm(1) Starting with Netpbm 10.31 (December 2005), pnmsplit is obsolete. Use pamsplit(1) instead. pamsplit is backward compatible wit

manpages/fputs.3.html
fputs(3) - output of characters and strings - Linux man page
fputc() writes the character c, cast to an unsigned char, to stream. fputs() writes the string s to stream, without its terminating null byte (\0). putc() is eq

manpages/Tcl_CreateHashEntry.3.html
Tcl_CreateHashEntry(3) - procedures to manage hash tables...
A hash table consists of zero or more entries, each consisting of a key and a value. Given the key for an entry, the hashing routines can very quickly locate th

manpages/mq_unlink.3.html
mq_unlink(3) - remove a message queue - Linux manual page...
mq_unlink() removes the specified message queue name. The message queue name is removed immediately. The queue itself is destroyed once any other processes that

manpages/error_print_progname.3.html
error_print_progname(3) - glibc error reporting functions...
error() is a general error-reporting function. It flushes stdout, and then outputs to stderr the program name, a colon and a space, the message specified by the

manpages/xeyes.1.html
xeyes(1) - a follow the mouse X demo - Linux manual page....
Xeyes watches what you do and reports to the Boss. OPTIONS -fg foreground color choose a different color for the pupil of the eyes. -bg background color choose

manpages/DPMSGetVersion.3.html
DPMSGetVersion(3) - returns the version of the DPMS extensio
The DPMSGetVersion function returns the version of the Display Power Management Signaling (DPMS) extension implemented by the X server. It returns a major and m

manpages/pcre32_refcount.3.html
pcre32_refcount(3) Perl-compatible regular expressions......
This function is used to maintain a reference count inside a data block that contains a compiled pattern. Its arguments are: code Compiled regular expression ad





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