#include <stdio.h>
#include <string.h>
#include "getopt.h"
#include "getopt_int.h"
Go to the source code of this file.
Defines |
#define | _NO_PROTO |
#define | attribute_hidden |
#define | GETOPT_INTERFACE_VERSION 2 |
#define | NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0') |
#define | SWAP_FLAGS(ch1, ch2) |
Functions |
static const char * | _getopt_initialize (int argc, char *const *argv, const char *optstring, struct _getopt_data *d) |
int | _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) |
int | _getopt_internal_r (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d) |
static void | exchange (char **argv, struct _getopt_data *d) |
char * | getenv () |
int | getopt (int argc, char *const *argv, const char *optstring) |
Variables |
static struct _getopt_data | getopt_data |
char * | optarg |
int | opterr = 1 |
int | optind = 1 |
int | optopt = '?' |
Define Documentation
Function Documentation
int _getopt_internal |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind, |
|
|
int |
long_only |
|
) |
| |
int _getopt_internal_r |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind, |
|
|
int |
long_only, |
|
|
struct _getopt_data * |
d |
|
) |
| |
int getopt |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
| |
Variable Documentation