#include "common.h"
#include "options.h"
#include "glib-missing.h"
#include "misc.h"
#include "override.h"
Enumerations | |
| enum | { OPTION_F_VALID = 1 << 0, OPTION_F_VALUE = 1 << 1 } |
Functions | |
| option_t * | option_lookup (gchar letter, option_t *ovec, gint osize) |
| Locate the option letter in the vector array, returning the pointer to the entry if found, or NULL if it wasn't. | |
| const gchar * | options_parse_last_error (void) |
| Returns error string resulting from the last call to options_parse(). | |
| gint | options_parse (const gchar *argv[], option_t *ovec, gint osize) |
| Parse the arguments, looking for specific single-letter options. | |
Variables | |
| gchar | error_string [80] |
|
|
|
|
||||||||||||||||
|
Locate the option letter in the vector array, returning the pointer to the entry if found, or NULL if it wasn't.
|
|
||||||||||||||||
|
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