getopt.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "getopt.h"
Include dependency graph for getopt.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _(string)   string
#define _NO_PROTO
#define HAVE_STRING_H

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }

Functions

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)
int getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind)
static void my_bcopy (const char *from, char *to, int size)
static char * my_index (const char *str, int chr)

Variables

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

Define Documentation

#define _ ( string   )     string

Definition at line 94 of file getopt.cpp.

#define _NO_PROTO

Definition at line 38 of file getopt.cpp.

#define HAVE_STRING_H

Definition at line 42 of file getopt.cpp.


Enumeration Type Documentation

anonymous enum
Enumerator:
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Definition at line 173 of file getopt.cpp.


Function Documentation

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

Definition at line 310 of file getopt.cpp.

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

Definition at line 233 of file getopt.cpp.

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

Definition at line 650 of file getopt.cpp.

int getopt_long ( int  argc,
char *const *  argv,
const char *  shortopts,
const struct option longopts,
int *  longind 
)

Definition at line 643 of file getopt.cpp.

static void my_bcopy ( const char *  from,
char *  to,
int  size 
) [static]

Definition at line 206 of file getopt.cpp.

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

Definition at line 194 of file getopt.cpp.


Variable Documentation

const char* exec_name

Definition at line 99 of file getopt.cpp.

int first_nonopt [static]

Definition at line 220 of file getopt.cpp.

int last_nonopt [static]

Definition at line 221 of file getopt.cpp.

char* nextchar [static]

Definition at line 131 of file getopt.cpp.

char* optarg = 0

Definition at line 107 of file getopt.cpp.

int opterr = 1

Definition at line 136 of file getopt.cpp.

int optind = 0

Definition at line 122 of file getopt.cpp.

int optopt = '?'

Definition at line 142 of file getopt.cpp.

enum { ... } ordering [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:19:20 2013