#include <stdio.h>
#include "getopt.h"
#include <strings.h>
Go to the source code of this file.
|
| 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 |
| |
| #define _ |
( |
|
msgid | ) |
(msgid) |
◆ _NO_PROTO
◆ const
◆ GETOPT_INTERFACE_VERSION
| #define GETOPT_INTERFACE_VERSION 2 |
◆ NONOPTION_P
| #define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
◆ SWAP_FLAGS
| #define SWAP_FLAGS |
( |
|
ch1, |
|
|
|
ch2 |
|
) |
| |
◆ anonymous enum
| Enumerator |
|---|
| REQUIRE_ORDER | |
| PERMUTE | |
| RETURN_IN_ORDER | |
Definition at line 188 of file getopt.c.
◆ _getopt_initialize()
| static const char* _getopt_initialize |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
| |
|
static |
◆ _getopt_internal()
| int _getopt_internal |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind, |
|
|
int |
long_only |
|
) |
| |
◆ exchange()
| static void exchange |
( |
char ** |
argv | ) |
|
|
static |
◆ getenv()
◆ getopt()
| int getopt |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
| |
◆ my_index()
| static char* my_index |
( |
char * |
str, |
|
|
int |
chr |
|
) |
| const |
|
static |
◆ __getopt_initialized
◆ first_nonopt
◆ last_nonopt
◆ nextchar
◆ optarg
◆ opterr
◆ optind
◆ optopt
◆ ordering
◆ posixly_correct