| 
    spBase
    
   | 
 
Data Structures | |
| struct | spOption | 
Macros | |
| #define | spGetOptions(argc, argv, option, file_label) _spGetOptions(argc, argv, spArraySize(option), option, spArraySize(file_label), file_label) | 
| #define | spStrToBool(value) (((*(value) == 'T') || spStrEq(value, "1") || spStrEq(value, "ON") || spStrEq(value, "On")) ? SP_TRUE : SP_FALSE) | 
| #define | spBoolToStr(value) (((value) == SP_TRUE) ? "True" : "False") | 
Typedefs | |
| typedef void(* | spExitCallbackFunc) (void *) | 
| typedef unsigned short | spOptionType | 
| typedef struct _spOptions * | spOptions | 
Functions | |
| spBool | spEqType (spOptionType type1, spOptionType type2) | 
| void | spIgnoreUnknownOption (spOptions options, spBool flag) | 
| void | spSetSection (spOptions options, int section) | 
| void | spSetSetup (const char *filename) | 
| spBool | spWriteGlobalSetup (void) | 
| spBool | spAddExitCallback (spExitCallbackFunc callback, void *data) | 
| spBool | spRemoveExitCallback (spExitCallbackFunc callback, void *data) | 
| void | spExit (int status) | 
| char * | spGetOptionValue (int argc, char **argv, spOptions options) | 
| void | spGetOptionsValue (int argc, char **argv, spOptions options) | 
| void | spCheckNumFile (spOptions options) | 
| const char * | spGetFile (spOptions options) | 
| void | spSetHelpMessage (spBool *flag, const char *format,...) | 
| void | spPrintHelp (const char *format,...) | 
| void | spPrintError (const char *format,...) | 
| void | spPrintMan (spOptions options, const char *description, const char *author) | 
| spBool | spReadSetup (const char *filename, spOptions options) | 
| spBool | spWriteSetup (const char *filename, spOptions options) | 
| void | spUsage (void) | 
| #define spGetOptions | ( | argc, | |
| argv, | |||
| option, | |||
| file_label ) _spGetOptions(argc, argv, spArraySize(option), option, spArraySize(file_label), file_label) | 
| #define spStrToBool | ( | value | ) | (((*(value) == 'T') || spStrEq(value, "1") || spStrEq(value, "ON") || spStrEq(value, "On")) ? SP_TRUE : SP_FALSE) | 
Converts a null-terminated string to a boolean value.
| #define spBoolToStr | ( | value | ) | (((value) == SP_TRUE) ? "True" : "False") | 
Converts a boolean value to a null-terminated string.
| typedef void(* spExitCallbackFunc) (void *) | 
Definition of spExitCallbackFunc used for spAddExitCallback() .
| typedef unsigned short spOptionType | 
Definition of spOptionType .
| typedef struct _spOptions* spOptions | 
Definition of spOptions.
      
  | 
  extern | 
Checks if two option types are the same.
Ignores unknown options in option handling if flag is SP_TRUE. 
      
  | 
  extern | 
Sets the section number for a help message.
      
  | 
  extern | 
Sets the file name of the setup file.
      
  | 
  extern | 
Writes the contents of the setup file.
      
  | 
  extern | 
Adds a callback function called at exit.
      
  | 
  extern | 
Removes a callback function added by spAddExitCallback() .
      
  | 
  extern | 
Terminates the current program.
      
  | 
  extern | 
Parses a command-line option. This function parses only one option. Use spGetOptionsValue() to parse multiple options.
      
  | 
  extern | 
Parses multiple command-line options. This function calls spGetOptionValue() internally.
      
  | 
  extern | 
Checks if the number of files in the command line is correct.
      
  | 
  extern | 
Gets the file name specified in the command line one by one.
      
  | 
  extern | 
Sets the contents of a help message.
      
  | 
  extern | 
Displays a help message.
      
  | 
  extern | 
Displays an error message.
      
  | 
  extern | 
Generates a text in man format.
Reads settings from the setup file.
Writes settings to the setup file.
      
  | 
  extern | 
Displays a help message and then terminates the current program.