Back to index

nagios-plugins  1.4.16
Classes | Defines | Functions | Variables
getopt.in.h File Reference
#include <ctype.h>

Go to the source code of this file.

Classes

struct  option

Defines

#define _GL_GETOPT_H   1
#define __getopt_argv_const   const
#define __GNUC_PREREQ(maj, min)   (0)
#define __THROW
#define no_argument   0
#define required_argument   1
#define optional_argument   2

Functions

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

Variables

char * optarg
int optind
int opterr
int optopt

Class Documentation

struct option

Definition at line 183 of file getopt.in.h.

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

Define Documentation

#define __getopt_argv_const   const

Definition at line 98 of file getopt.in.h.

#define __GNUC_PREREQ (   maj,
  min 
)    (0)

Definition at line 115 of file getopt.in.h.

#define __THROW

Definition at line 120 of file getopt.in.h.

#define _GL_GETOPT_H   1

Definition at line 37 of file getopt.in.h.

#define no_argument   0

Definition at line 195 of file getopt.in.h.

#define optional_argument   2

Definition at line 197 of file getopt.in.h.

#define required_argument   1

Definition at line 196 of file getopt.in.h.


Function Documentation

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

Here is the caller graph for this function:

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

Variable Documentation

char* optarg

Definition at line 67 of file getopt.c.

int opterr

Definition at line 87 of file getopt.c.

int optind

Definition at line 82 of file getopt.c.

int optopt

Definition at line 93 of file getopt.c.