packages/support/src/getopt.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "getopt.h"
#include <strings.h>

Include dependency graph for packages/support/src/getopt.c:

Go to the source code of this file.

Defines

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

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)
int getopt (int argc, char *const *argv, const char *optstring)

Variables

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


Define Documentation

#define GETOPT_INTERFACE_VERSION   2

Definition at line 71 of file packages/support/src/getopt.c.

#define _ ( msgid   )     (msgid)

Definition at line 108 of file packages/support/src/getopt.c.

#define SWAP_FLAGS ( ch1,
ch2   ) 

Definition at line 301 of file packages/support/src/getopt.c.

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


Enumeration Type Documentation

anonymous enum

Enumerator:
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Definition at line 206 of file packages/support/src/getopt.c.


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 521 of file packages/support/src/getopt.c.

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

Definition at line 982 of file packages/support/src/getopt.c.


Variable Documentation

char* optarg

Definition at line 134 of file packages/support/src/getopt.c.

int optind = 1

Definition at line 149 of file packages/support/src/getopt.c.

int __getopt_initialized

Definition at line 155 of file packages/support/src/getopt.c.

int opterr = 1

Definition at line 169 of file packages/support/src/getopt.c.

int optopt = '?'

Definition at line 175 of file packages/support/src/getopt.c.


Generated on Mon Oct 13 02:32:41 2008 for LAL by  doxygen 1.5.2