Header for command line options parsing utilities. More...
#include <yaz/yconfig.h>Go to the source code of this file.
Defines | |
| #define | TAZ_OPTIONS_H |
| #define | YAZ_OPTIONS_ERROR (-1) |
| #define | YAZ_OPTIONS_EOF (-2) |
Functions | |
| int | options (const char *desc, char **argv, int argc, char **arg) |
| command-line options parsing for main | |
Header for command line options parsing utilities.
Definition in file options.h.
| int options | ( | const char * | desc, | |
| char ** | argv, | |||
| int | argc, | |||
| char ** | arg | |||
| ) |
command-line options parsing for main
| 0 | non-option arg (e.g. filename). | |
| -1 | unknown option (error). arg is name of unknown option | |
| -2 | no more options (end of options) | |
| c | option char |
The first char is what is returned when met (single char option char). The second is zero ore more long option values (synonum for single char) If colon is appended, it means the option takes an argument.
Definition at line 20 of file options.c.
References arg_no, and arg_off.
Referenced by check_options(), and process_initRequest().
1.6.3