Back to index

glibc  2.9
Classes | Defines | Functions | Variables
getopt.h File Reference
#include <ctype.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  option

Defines

#define _GETOPT_H   1
#define __GNUC_PREREQ(maj, min)   (0)
#define __THROW
#define no_argument   0
#define required_argument   1
#define optional_argument   2

Functions

int getopt ()
int getopt_long (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW
int getopt_long_only (int ___argc, char *const *___argv, const char *__shortopts, const struct option *__longopts, int *__longind) __THROW

Variables

char * optarg
int optind
int opterr
int optopt

Class Documentation

struct option

Definition at line 106 of file getopt.h.

Class Members
int * flag
int has_arg
const char * name
int val

Define Documentation

#define __GNUC_PREREQ (   maj,
  min 
)    (0)

Definition at line 40 of file getopt.h.

#define __THROW

Definition at line 45 of file getopt.h.

#define _GETOPT_H   1

Definition at line 24 of file getopt.h.

#define no_argument   0

Definition at line 118 of file getopt.h.

#define optional_argument   2

Definition at line 120 of file getopt.h.

#define required_argument   1

Definition at line 119 of file getopt.h.


Function Documentation

int getopt ( )
int getopt_long ( int  ___argc,
char *const ___argv,
const char *  __shortopts,
const struct option __longopts,
int __longind 
)

Definition at line 64 of file getopt1.c.

{
  return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int getopt_long_only ( int  ___argc,
char *const ___argv,
const char *  __shortopts,
const struct option __longopts,
int __longind 
)

Definition at line 85 of file getopt1.c.

{
  return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char* optarg

Definition at line 107 of file getopt.c.

Definition at line 127 of file getopt.c.

Definition at line 122 of file getopt.c.

Definition at line 133 of file getopt.c.