ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
Definicje | Wyliczenia | Funkcje | Zmienne
Dokumentacja pliku getopt.c
#include <stdio.h>
#include "getopt.h"
#include <strings.h>

Definicje

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

Wyliczenia

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }
 

Funkcje

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

Zmienne

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

Dokumentacja definicji

#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 
)

Dokumentacja typów wyliczanych

anonymous enum
Wartości wyliczeń
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Dokumentacja funkcji

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

Dokumentacja zmiennych

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