#include "common.h"
Go to the source code of this file.
Data Structures | |
| struct | option |
| Option description structure for single-letter options. More... | |
Typedefs | |
| typedef option | option_t |
| Option description structure for single-letter options. | |
Functions | |
| gint | options_parse (const gchar *argv[], option_t *ovec, gint osize) |
| Parse the arguments, looking for specific single-letter options. | |
| const gchar * | options_parse_last_error (void) |
| Returns error string resulting from the last call to options_parse(). | |
|
|
Option description structure for single-letter options. An option letter consists of an initial letter, followed by ":" if it takes an argument. The value is a pointer to a variable that will get filled with NULL if the option is not present, with a pointer to a static empty string if the option is found and does not have any argument, or with the actual value. |
|
||||||||||||||||
|
Parse the arguments, looking for specific single-letter options. Whenever an option is found, the value in the option_t vector is set. Options start with a "-" and option parsing stops when "--" is encountered. Several argumentless options can be concatenated together after the initial "-". The value of the option can immediately follow the option letter, or be given by the next argument. Unrecognized options or missing arguments stop processing.
|
|
|
Returns error string resulting from the last call to options_parse().
|
1.3.9.1