optionSaveState(3)


NAME

   optionSaveState - saves the option state to memory

SYNOPSIS

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

   void optionSaveState(tOptions * pOpts);

DESCRIPTION

   This  routine  will  allocate  enough memory to save the current option
   processing state.  If this routine has been called before, that  memory
   will  be reused.  You may only save one copy of the option state.  This
   routine may be called before optionProcess(3AO).  If  you  do  call  it
   before  the  first  call to optionProcess, then you may also change the
   contents of argc/argv after you call optionRestore(3AO)

   In fact, more strongly put: it is safest  to  only  use  this  function
   before  having  processed  any  options.  In particular, the saving and
   restoring of  stacked  string  arguments  and  hierarchical  values  is
   disabled.  The values are not saved.

   pOpts  program options descriptor

ERRORS

   If  it  fails to allocate the memory, it will print a message to stderr
   and exit.  Otherwise, it will always succeed.

SEE ALSO

   The info documentation for the -lopts library.
   ao_string_tokenize(3),      configFileLoad(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),       optionUnloadNested(3),       optionVersion(3),
   strequate(3),      streqvcmp(3),      streqvmap(3),      strneqvcmp(3),
   strtransform(3),

                              2016-10-30                optionSaveState(3)


More Linux Commands

manpages/Tcl_MakeFileChannel.3.html
Tcl_MakeFileChannel(3) - buffered I/O facilities using chann
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

manpages/Cyrus::IMAP.3pm.html
Cyrus::IMAP(3pm) - Interface to Cyrus imclient library......
The Cyrus::IMAP module provides an interface to the Cyrus imclient library. These are primarily useful for implementing cyradm operations within a Perl script;

manpages/XtCallCallbacks.3.html
XtCallCallbacks(3) - process callbacks - Linux manual page
The XtCallCallbacks function calls each procedure that is registered in the specified widgets callback list. If callbacks is not NULL, XtCallCallbackList calls

manpages/sqrt.3.html
sqrt(3) - square root function (Library - Linux man page)...
The sqrt() function returns the nonnegative square root of x. RETURN VALUE On success, these functions return the square root of x. If x is a NaN, a NaN is retu

manpages/gluQuadricCallback.3gl.html
gluQuadricCallback(3gl) - define a callback for a quadrics o
gluQuadricCallback is used to define a new callback to be used by a quadrics object. If the specified callback is already defined, then it is replaced. If CallB

manpages/XkbAllocDeviceInfo.3.html
XkbAllocDeviceInfo(3) - Obtain an XkbDeviceInfoRec structure
XkbAllocDeviceInfo allocates space for an XkbDeviceInfoRec structure and initializes that structures device_spec field with the device ID specified by device_sp

manpages/unix_update.8.html
unix_update(8) - Helper binary that updates the password of
unix_update is a helper program for the pam_unix module that updates the password of a given user. It is not intended to be run directly from the command line a

manpages/perlsource.1.html
perlsource(1) - A guide to the Perl source tree (Man Page)
This document describes the layout of the Perl source tree. If youre hacking on the Perl core, this will help you find what youre looking for. FINDING YOUR WAY

manpages/XFillRectangles.3.html
XFillRectangles(3) - fill rectangles, polygons, or arcs.....
The XFillRectangle and XFillRectangles functions fill the specified rectangle or rectangles as if a four-point FillPolygon protocol request were specified for e

manpages/XCheckIfEvent.3.html
XCheckIfEvent(3) - check the event queue with a predicate pr
The XIfEvent function completes only when the specified predicate procedure returns True for an event, which indicates an event in the queue matches. XIfEvent f

manpages/alphasort.3.html
alphasort(3) - scan a directory for matching entries........
alphasort.3 - The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() returns nonzero are stored i

manpages/podofocolor.1.html
podofocolor(1) modify colors in a PDF file. - Linux man page
podofocolor.1 - podofocolor is one of the command line tools from the PoDoFo library that provide several useful operations to work with colors in PDF files. It





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