optionSaveFile - saves the option state to a file


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

void optionSaveFile(tOptions* opts);


This routine will save the state of option processing to a file. The name of that file can be specified with the argument to the --save-opts option, or by appending the rcfile attribute to the last homerc attribute. If no rcfile attribute was specified, it will default to .programnamerc. If you wish to specify another file, you should invoke the SET_OPT_SAVE_OPTS(filename) macro.

The recommend usage is as follows:
optionProcess(&progOptions, argc, argv);
if (i_want_a_non_standard_place_for_this)


program options descriptor


If no homerc file was specified, this routine will silently return and do nothing. If the output file cannot be created or updated, a message will be printed to stderr and the routine will return.


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

More Linux Commands

XGetFontProperty(3) - load or unload fonts and font metric s
The XLoadFont function loads the specified font and returns its associated font ID. If the font name is not in the Host Portable Character Encoding, the result

glEdgeFlagPointer(3gl) - define an array of edge flags......
glEdgeFlagPointer specifies the location and data of an array of boolean edge flags to use when rendering. stride specifies the byte stride from one edge flag t

control.ctl(5) - Specify handling of Usenet control messages
The file pathetc/control.ctl is used to determine what action is taken when a control message is received. It is read by controlchan, which is normally invoked

XDGACopyArea(3) - Client library for the XFree86-DGA extensi
The XFree86-DGA extension is an X server extension for allowing client programs direct access to the video frame buffer. This is a brief description of the prog

pkg_mkIndex(n) - Build an index for automatic loading of pac
Pkg_mkIndex is a utility procedure that is part of the standard Tcl library. It is used to create index files that allow packages to be loaded automatically whe

ggz.h(3) - (unknown subject) (Library - Linux man page).....
Author: Brent M. Hendricks Date: Fri Nov 2 23:32:17 2001 Id.RS 4 ggz.h,v 1.59 2005/05/21 10:19:22 josef Exp Header file for ggz components lib Copyright (C) 200

noqiflush_sp(3ncurses) - curses screen-pointer extension....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

inews(1) - Post a Usenet article to the local news server...
inews reads a Usenet news article, perhaps with headers, from file or standard input if no file is given. It adds some headers and performs some consistency che

blogger(8) - writes messages to a running blogd process.....
blogger is used to send messages to the blogd process during boot phase. These messages will only appear in the boot logging file /var/log/boot.msg and not on /

lsattr(1) - list file attributes on a Linux second extended
lsattr lists the file attributes on a second extended file system. See chattr(1) for a description of the attributes and what they mean. OPTIONS -R Recursively

gnutls_priority_init(3) - API function - Linux manual page
Sets priorities for the ciphers, key exchange methods, macs and compression methods. The priorities option allows you to specify a colon separated list of the c

XtIsRealized(3) - realize and unrealize widgets (Man Page)
If the widget is already realized, XtRealizeWidget simply returns. Otherwise, it performs the following: * Binds all action names in the widgets translation tab

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