#include <stdio.h>
#include "getopt.h"
#include <strings.h>
Go to the source code of this file.
Defines |
| #define | _(msgid) (msgid) |
| #define | _NO_PROTO |
| #define | const |
| #define | GETOPT_INTERFACE_VERSION 2 |
| #define | NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
| #define | SWAP_FLAGS(ch1, ch2) |
Enumerations |
| enum | { REQUIRE_ORDER,
PERMUTE,
RETURN_IN_ORDER
} |
Functions |
| static const char * | _getopt_initialize (int argc, char *const *argv, const char *optstring) |
| int | _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) |
| static void | exchange (char **argv) |
| char * | getenv () |
| int | getopt (int argc, char *const *argv, const char *optstring) |
| static char * | my_index (char *str, int chr) const |
Variables |
| int | __getopt_initialized |
| static int | first_nonopt |
| static int | last_nonopt |
| static char * | nextchar |
| char * | optarg |
| int | opterr = 1 |
| int | optind = 1 |
| int | optopt = '?' |
| static enum { ... } | ordering |
| static char * | posixly_correct |
Define Documentation
| #define _ |
( |
|
msgid | ) |
(msgid) |
Enumeration Type Documentation
- Enumerator:
| REQUIRE_ORDER |
|
| PERMUTE |
|
| RETURN_IN_ORDER |
|
Definition at line 185 of file getopt.c.
Function Documentation
| static void exchange |
( |
char ** |
argv | ) |
[static] |
| static char* my_index |
( |
char * |
str, |
|
|
int |
chr |
|
) |
| const [static] |
Variable Documentation