libcdio-paranoia 10.2+2.0.2
Macros | Functions | Variables
getopt.c File Reference
#include <stdio.h>
#include <string.h>
#include "getopt.h"
#include "getopt_int.h"

Macros

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

Functions

int getopt (int argc, char *const *argv, const char *optstring)
 
char * getenv ()
 
int _getopt_internal_r (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only, struct _getopt_data *d, int posixly_correct)
 
int _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct)
 

Variables

char * optarg
 
int optind = 1
 
int opterr = 1
 
int optopt = '?'
 

Macro Definition Documentation

◆ _

#define _ (   msgid)    (msgid)

◆ _NO_PROTO

#define _NO_PROTO

◆ attribute_hidden

#define attribute_hidden

◆ GETOPT_INTERFACE_VERSION

#define GETOPT_INTERFACE_VERSION   2

◆ NONOPTION_P

#define NONOPTION_P   (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')

◆ SWAP_FLAGS

#define SWAP_FLAGS (   ch1,
  ch2 
)

Function Documentation

◆ _getopt_internal()

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

◆ _getopt_internal_r()

int _getopt_internal_r ( int  argc,
char *const *  argv,
const char *  optstring,
const struct option longopts,
int *  longind,
int  long_only,
struct _getopt_data d,
int  posixly_correct 
)

◆ getenv()

char * getenv ( )

◆ getopt()

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

Variable Documentation

◆ optarg

char* optarg

◆ opterr

int opterr = 1

◆ optind

int optind = 1

◆ optopt

int optopt = '?'