JWS C Library
C language utility library
|
Data structure for an option that does not take an argument. More...
#include <option.h>
Data Fields | |
Option_string | string |
Long name of the option. | |
Option_flag | flag |
Character flag for the option. | |
Option_desc | desc |
String containing a short description of the option. | |
Option_func_no_arg | func |
Function for processing the option, no argument. |
Data structure for an option that does not take an argument.
An option is specified on the command-line as follows
--option-string
-O
where
Option_no_arg::string = "option-string" Option_no_arg::flag = 'O'
Specifying an option in a file is similar, but only the string can be used.