#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "getopt.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) |
|
int | getopt (int argc, char *const *argv, const char *optstring) |
|
static char * | my_index (const char *str, int chr) |
|
#define _ |
( |
|
msgid | ) |
(msgid) |
#define GETOPT_INTERFACE_VERSION 2 |
#define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
#define SWAP_FLAGS |
( |
|
ch1, |
|
|
|
ch2 |
|
) |
| |
Enumerator |
---|
REQUIRE_ORDER |
|
PERMUTE |
|
RETURN_IN_ORDER |
|
Definition at line 188 of file getopt.c.
static const char* _getopt_initialize |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
| |
|
static |
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 | ) |
|
|
static |
int getopt |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
| |
static char* my_index |
( |
const char * |
str, |
|
|
int |
chr |
|
) |
| |
|
static |
int __getopt_initialized = 0 |