getopt.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "getopt.h"
Go to the source code of this file.
Defines |
#define | _(string) string |
#define | _NO_PROTO |
#define | HAVE_STRING_H |
Enumerations |
enum | { REQUIRE_ORDER,
PERMUTE,
RETURN_IN_ORDER
} |
Functions |
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) |
int | getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind) |
static void | my_bcopy (const char *from, char *to, int size) |
static char * | my_index (const char *str, int chr) |
Variables |
const char * | exec_name |
static int | first_nonopt |
static int | last_nonopt |
static char * | nextchar |
char * | optarg = 0 |
int | opterr = 1 |
int | optind = 0 |
int | optopt = '?' |
static enum { ... } | ordering |
Define Documentation
#define _ |
( |
string |
|
) |
string |
Enumeration Type Documentation
- Enumerator:
REQUIRE_ORDER |
|
PERMUTE |
|
RETURN_IN_ORDER |
|
Definition at line 173 of file getopt.cpp.
Function Documentation
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 | |
|
) |
| | |
int getopt_long |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
shortopts, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind | |
|
) |
| | |
static void my_bcopy |
( |
const char * |
from, |
|
|
char * |
to, |
|
|
int |
size | |
|
) |
| | [static] |
static char* my_index |
( |
const char * |
str, |
|
|
int |
chr | |
|
) |
| | [static] |
Variable Documentation