Defines | Functions | Variables
getopt.c File Reference
#include <stdio.h>
#include <string.h>
#include "getopt.h"
#include "getopt_int.h"
Include dependency graph for getopt.c:

Go to the source code of this file.

Defines

#define _NO_PROTO
#define attribute_hidden
#define GETOPT_INTERFACE_VERSION   2
#define NONOPTION_P   (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
#define SWAP_FLAGS(ch1, ch2)

Functions

static const char * _getopt_initialize (int argc, char *const *argv, const char *optstring, struct _getopt_data *d)
int _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only)
int _getopt_internal_r (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d)
static void exchange (char **argv, struct _getopt_data *d)
char * getenv ()
int getopt (int argc, char *const *argv, const char *optstring)

Variables

static struct _getopt_data getopt_data
char * optarg
int opterr = 1
int optind = 1
int optopt = '?'

Define Documentation

#define _NO_PROTO

Definition at line 27 of file getopt.c.

Definition at line 82 of file getopt.c.

#define GETOPT_INTERFACE_VERSION   2

Definition at line 44 of file getopt.c.

#define NONOPTION_P   (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
#define SWAP_FLAGS (   ch1,
  ch2 
)

Definition at line 178 of file getopt.c.


Function Documentation

static const char* _getopt_initialize ( int  argc,
char *const *  argv,
const char *  optstring,
struct _getopt_data d 
) [static]

Definition at line 272 of file getopt.c.

int _getopt_internal ( int  argc,
char *const *  argv,
const char *  optstring,
const struct option *  longopts,
int *  longind,
int  long_only 
)

Definition at line 1127 of file getopt.c.

int _getopt_internal_r ( int  argc,
char *const *  argv,
const char *  optstring,
const struct option *  longopts,
int *  longind,
int  long_only,
struct _getopt_data d 
)

Definition at line 393 of file getopt.c.

static void exchange ( char **  argv,
struct _getopt_data d 
) [static]

Definition at line 191 of file getopt.c.

char* getenv ( )
int getopt ( int  argc,
char *const *  argv,
const char *  optstring 
)

Definition at line 1146 of file getopt.c.


Variable Documentation

struct _getopt_data getopt_data [static]

Definition at line 138 of file getopt.c.

char* optarg

Definition at line 108 of file getopt.c.

int opterr = 1

Definition at line 128 of file getopt.c.

int optind = 1

Definition at line 123 of file getopt.c.

int optopt = '?'

Definition at line 134 of file getopt.c.



appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29