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

Go to the source code of this file.

Defines

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

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }

Functions

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)
char * getenv ()
int getopt (int argc, char *const *argv, const char *optstring)
static char * my_index (char *str, int chr) const

Variables

int __getopt_initialized
static int first_nonopt
static int last_nonopt
static char * nextchar
char * optarg
int opterr = 1
int optind = 1
int optopt = '?'
static enum { ... }  ordering
static char * posixly_correct

Define Documentation

#define _ (   msgid)    (msgid)

Definition at line 87 of file getopt.c.

#define _NO_PROTO

Definition at line 27 of file getopt.c.

#define const

Definition at line 38 of file getopt.c.

#define GETOPT_INTERFACE_VERSION   2

Definition at line 52 of file getopt.c.

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

Definition at line 289 of file getopt.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Definition at line 185 of file getopt.c.


Function Documentation

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

Definition at line 391 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 513 of file getopt.c.

static void exchange ( char **  argv) [static]

Definition at line 306 of file getopt.c.

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

Definition at line 978 of file getopt.c.

static char* my_index ( char *  str,
int  chr 
) const [static]

Definition at line 216 of file getopt.c.


Variable Documentation

Definition at line 134 of file getopt.c.

int first_nonopt [static]

Definition at line 249 of file getopt.c.

int last_nonopt [static]

Definition at line 250 of file getopt.c.

char* nextchar [static]

Definition at line 143 of file getopt.c.

char* optarg

Definition at line 113 of file getopt.c.

int opterr = 1

Definition at line 148 of file getopt.c.

int optind = 1

Definition at line 128 of file getopt.c.

int optopt = '?'

Definition at line 154 of file getopt.c.

enum { ... } ordering [static]
char* posixly_correct [static]

Definition at line 191 of file getopt.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


portrait_painter
Author(s): Niklas Meinzer, Ina Baumgarten
autogenerated on Wed Dec 26 2012 16:00:43