Slice Tools
Home
SourceForge Page
libFoundation
Home
Class Hierarchy
Class List
Class Members
Examples
|
|
getopt.cc File Reference
Detailed Description
GNU getopt.
#include <string>
#include <iostream>
#include <stdio.h>
#include "getopt.hh"
|
Defines |
#define | __alloca alloca |
Enumerations |
enum | {
REQUIRE_ORDER,
PERMUTE,
RETURN_IN_ORDER
} |
Functions |
char * | alloca () |
char * | getenv () |
char * | my_index (const char *str, int chr) |
void | my_bcopy (const char *from, char *to, int size) |
void | exchange (char **argv) |
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 = 0 |
int | optind = 0 |
char * | nextchar |
int | opterr = 1 |
int | optopt = '?' |
enum { ... } | ordering |
int | first_nonopt |
int | last_nonopt |
Define Documentation
Enumeration Type Documentation
|
- Enumeration values:
-
REQUIRE_ORDER |
|
PERMUTE |
|
RETURN_IN_ORDER |
|
|
Function Documentation
int _getopt_internal |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring, |
|
|
const struct option * |
longopts, |
|
|
int * |
longind, |
|
|
int |
long_only |
|
) |
|
|
void exchange |
( |
char ** |
argv |
) |
[static] |
|
int getopt |
( |
int |
argc, |
|
|
char *const * |
argv, |
|
|
const char * |
optstring |
|
) |
|
|
void my_bcopy |
( |
const char * |
from, |
|
|
char * |
to, |
|
|
int |
size |
|
) |
[static] |
|
char* my_index |
( |
const char * |
str, |
|
|
int |
chr |
|
) |
[static] |
|
Variable Documentation
|