Command-Line Interface (CLI) Option Processing.
More...
Command-Line Interface (CLI) Option Processing.
General information can be found here.
◆ JAS_GETOPT_EOF
#define JAS_GETOPT_EOF (-1) |
◆ JAS_GETOPT_ERR
#define JAS_GETOPT_ERR '?' |
Error while processing CLI options.
◆ JAS_OPT_HASARG
#define JAS_OPT_HASARG 0x01 /* option has argument */ |
◆ jas_getopt()
JAS_EXPORT int jas_getopt |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
const jas_opt_t * |
opts |
|
) |
| |
Get the next option.
Gets the next CLI option.
- Warning
- This function is not thread safe, due to its use of
jas_optind
, jas_optarg
, and jas_opterr
.
◆ jas_optarg
JAS_EXPORT const char* jas_optarg |
|
extern |
The current option argument.
◆ jas_opterr
JAS_EXPORT int jas_opterr |
|
extern |
◆ jas_optind
JAS_EXPORT int jas_optind |
|
extern |
The current option index.