#include <stdio.h>
#include "getopt.h"
Go to the source code of this file.
Defines | |
#define | GETOPT_INTERFACE_VERSION 2 |
#define | _(msgid) (msgid) |
#define | SWAP_FLAGS(ch1, ch2) |
#define | NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
Enumerations | |
enum | { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } |
Functions | |
char * | getenv () |
int | _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) |
int | getopt (int argc, char *const *argv, const char *optstring) |
int | getopt_long (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex) |
int | getopt_long_only (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex) |
Variables | |
char * | optarg = NULL |
int | optind = 1 |
int | __getopt_initialized = 0 |
int | opterr = 1 |
int | optopt = '?' |
#define _ | ( | msgid | ) | (msgid) |
#define GETOPT_INTERFACE_VERSION 2 |
Definition at line 52 of file getopt_long_only.c.
Referenced by _getopt_internal().
#define SWAP_FLAGS | ( | ch1, | |||
ch2 | ) |
Definition at line 282 of file getopt_long_only.c.
anonymous enum |
Definition at line 192 of file getopt_long_only.c.
int _getopt_internal | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring, | |||
const struct option * | longopts, | |||
int * | longind, | |||
int | long_only | |||
) |
Definition at line 506 of file getopt_long_only.c.
References _, __getopt_initialized, option::flag, option::has_arg, option::name, NONOPTION_P, NULL, optarg, opterr, optind, optopt, PERMUTE, REQUIRE_ORDER, and option::val.
char* getenv | ( | ) |
int getopt | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring | |||
) |
Definition at line 962 of file getopt_long_only.c.
int getopt_long | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring, | |||
const struct option * | longopts, | |||
int * | longindex | |||
) |
Definition at line 974 of file getopt_long_only.c.
int getopt_long_only | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring, | |||
const struct option * | longopts, | |||
int * | longindex | |||
) |
Definition at line 989 of file getopt_long_only.c.
int __getopt_initialized = 0 |
char* optarg = NULL |
int opterr = 1 |
int optind = 1 |
int optopt = '?' |