#include <stdio.h>
#include "getopt_win.h"
#include <string.h>
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) |
Variables | |
char * | optarg |
int | optind = 1 |
int | __getopt_initialized |
int | opterr = 1 |
int | optopt = '?' |
#define _ | ( | msgid | ) | (msgid) |
Referenced by _getopt_internal().
#define GETOPT_INTERFACE_VERSION 2 |
Referenced by _getopt_internal().
#define SWAP_FLAGS | ( | ch1, | |||
ch2 | ) |
int _getopt_internal | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring, | |||
const struct option * | longopts, | |||
int * | longind, | |||
int | long_only | |||
) |
References _, __getopt_initialized, option::flag, option::has_arg, option::name, NONOPTION_P, NULL, optarg, opterr, optind, optopt, PERMUTE, REQUIRE_ORDER, and option::val.
Referenced by getopt(), getopt_long(), and getopt_long_only().
char* getenv | ( | ) |
int getopt | ( | int | argc, | |
char *const * | argv, | |||
const char * | optstring | |||
) |
References _getopt_internal().
Referenced by _getopt_internal().
char* optarg |
Referenced by _getopt_internal(), and main().
int opterr = 1 |
Referenced by _getopt_internal().
int optind = 1 |
Referenced by _getopt_internal(), and main().
int optopt = '?' |
Referenced by _getopt_internal().