AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
getopt.c File Reference
#include <stdio.h>
#include "getopt.h"
#include <strings.h>
Include dependency graph for getopt.c:

Macros

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

Enumerations

enum  { REQUIRE_ORDER , PERMUTE , RETURN_IN_ORDER }

Functions

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)
int getopt_long (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)
int getopt_long_only (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)

Variables

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

Macro Definition Documentation

◆ _

#define _ ( msgid)
Value:
(msgid)

◆ _NO_PROTO

#define _NO_PROTO

◆ const

#define const

◆ GETOPT_INTERFACE_VERSION

#define GETOPT_INTERFACE_VERSION   2

◆ HAVE_STRING_H

#define HAVE_STRING_H   1

◆ NONOPTION_P

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

◆ SWAP_FLAGS

#define SWAP_FLAGS ( ch1,
ch2 )

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Function Documentation

◆ _getopt_initialize()

const char * _getopt_initialize ( int argc,
char *const * argv,
const char * optstring )
static
Here is the call graph for this function:

◆ _getopt_internal()

int _getopt_internal ( int argc,
char *const * argv,
const char * optstring,
const struct option * longopts,
int * longind,
int long_only )
Here is the call graph for this function:

◆ exchange()

void exchange ( char ** argv)
static

◆ getenv()

char * getenv ( )
extern

◆ getopt()

int getopt ( int argc,
char *const * argv,
const char * optstring )
Here is the call graph for this function:

◆ getopt_long()

int getopt_long ( int argc,
char *const * argv,
const char * options,
const struct option * long_options,
int * opt_index )
Here is the call graph for this function:

◆ getopt_long_only()

int getopt_long_only ( int argc,
char *const * argv,
const char * options,
const struct option * long_options,
int * opt_index )
Here is the call graph for this function:

◆ my_index()

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

Variable Documentation

◆ __getopt_initialized

int __getopt_initialized

◆ first_nonopt

int first_nonopt
static

◆ last_nonopt

int last_nonopt
static

◆ nextchar

char* nextchar
static

◆ optarg

char* optarg

◆ opterr

int opterr = 1

◆ optind

int optind = 1

◆ optopt

int optopt = '?'

◆ []

enum { ... } ordering

◆ posixly_correct

char* posixly_correct
static