nico@215: nico@215:
nico@215:#include <stdio.h>
#include "getopt.h"
#include <strings.h>
nico@215: Include dependency graph for getopt.c:
nico@215: Go to the source code of this file.
Defines | |
#define | GETOPT_INTERFACE_VERSION 2 |
#define | _(msgid) (msgid) |
#define | SWAP_FLAGS(ch1, ch2) |
#define | NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') |
Enumerations | |
enum | { REQUIRE_ORDER, etisserant@240: PERMUTE, etisserant@240: RETURN_IN_ORDER nico@215: } |
Functions | |
char * | getenv () |
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 |
int | optind = 1 |
int | __getopt_initialized |
int | opterr = 1 |
int | optopt = '?' |
#define _ | nico@215:( | nico@215:msgid | nico@215:nico@215: | ) | nico@215:(msgid) | nico@215:
#define GETOPT_INTERFACE_VERSION 2 | nico@215:
etisserant@240: etisserant@240:
#define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') | nico@215:
nico@215: nico@215:
nico@215: Referenced by _getopt_internal(). nico@215:
#define SWAP_FLAGS | nico@215:( | nico@215:ch1, | |||
nico@215: | nico@215: | ch2 | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215:
anonymous enum | nico@215:
nico@215:
int _getopt_internal | nico@215:( | nico@215:int | nico@215:argc, | nico@215:|
nico@215: | nico@215: | char *const * | nico@215:argv, | nico@215:|
nico@215: | nico@215: | const char * | nico@215:optstring, | nico@215:|
nico@215: | nico@215: | const struct option * | nico@215:longopts, | nico@215:|
nico@215: | nico@215: | int * | nico@215:longind, | nico@215:|
nico@215: | nico@215: | int | nico@215:long_only | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 511 of file getopt.c. nico@215:
etisserant@240: References __getopt_initialized, option::name, NONOPTION_P, optarg, opterr, optind, PERMUTE, and REQUIRE_ORDER. nico@215:
nico@215: Referenced by getopt(). nico@215:
char* getenv | nico@215:( | nico@215:nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
int getopt | nico@215:( | nico@215:int | nico@215:argc, | nico@215:|
nico@215: | nico@215: | char *const * | nico@215:argv, | nico@215:|
nico@215: | nico@215: | const char * | nico@215:optstring | nico@215: |
nico@215: | ) | nico@215:nico@215: |
nico@215: nico@215:
nico@215: Definition at line 1171 of file getopt.c. nico@215:
nico@215: References _getopt_internal(). nico@215:
nico@215: Referenced by main(). nico@215:
etisserant@240: Here is the call graph for this function:
nico@215:
int __getopt_initialized | nico@215:
nico@215: nico@215:
nico@215: Definition at line 139 of file getopt.c. nico@215:
nico@215: Referenced by _getopt_internal(). nico@215:
etisserant@240: etisserant@240:
char* optarg | nico@215:
nico@215: nico@215:
nico@215: Definition at line 118 of file getopt.c. nico@215:
nico@215: Referenced by _getopt_internal(), and main(). nico@215:
etisserant@240: etisserant@240:
int opterr = 1 | nico@215:
nico@215: nico@215:
nico@215: Definition at line 153 of file getopt.c. nico@215:
nico@215: Referenced by _getopt_internal(). nico@215:
etisserant@240: etisserant@240:
int optind = 1 | nico@215:
nico@215: nico@215:
nico@215: Definition at line 133 of file getopt.c. nico@215:
nico@215: Referenced by _getopt_internal(). nico@215:
etisserant@240: etisserant@240:
int optopt = '?' | nico@215:
etisserant@240: