Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Examples  

Option_ Struct Reference

This data structure contains the definition for one option. More...


Data Fields

char * flag
 Pointer to a zero terminated string of characters that represents the option flag. Please note that an option's flag should verify the following rules:
  • At least 2 characters.
  • Begin with a '-'.
  • No spaces.
  • Not all '-'.
.


int arg
 This flag defines the number of argument required by the option. The option may require zero (ex: --help) or one argument.
  • If you set this argument to the value 0, it means that the option does not require any arguemnt (ex: --help).
  • Any other value means that the option requires one (and only one) argument.
.


int max_size
 The tag defines the maximum number of characters for the option's argument.

char * reg_exp
 Pointer to a zero terminated string of characters that represents the regular expression that matches the option's argument.

char ** pointer
 Address to a pointer that will receive the address of the sero terminated string of characters that represents en option's argument.

char * desc
 Pointer to a zero terminated string of characters that contains a literal description of the option.


Detailed Description

This data structure contains the definition for one option.
Examples:

test_options.c.

Definition at line 18 of file option.h.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 3 16:23:47 2003 for Common_C_libraries by doxygen1.3-rc1