Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
getopt.c File Reference
#include "getopt.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "getopt_int.h"

Macros

#define _(msgid)
 
#define flockfile(fp)
 
#define funlockfile(fp)
 
#define __libc_use_alloca(size)
 
#define alloca(size)
 
#define NONOPTION_P   (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')
 
#define GETOPT_ENTRY(NAME, POSIXLY_CORRECT)
 

Functions

int _getopt_internal_r (int argc, char **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 **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)
Value:
(msgid)

◆ __libc_use_alloca

#define __libc_use_alloca ( size)
Value:
0

◆ alloca

#define alloca ( size)
Value:
(abort (), (void *)0)

◆ flockfile

#define flockfile ( fp)
Value:
/* nop */

◆ funlockfile

#define funlockfile ( fp)
Value:
/* nop */

◆ GETOPT_ENTRY

#define GETOPT_ENTRY ( NAME,
POSIXLY_CORRECT )
Value:
int \
NAME (int argc, char *const *argv, const char *optstring) \
{ \
return _getopt_internal (argc, (char **)argv, optstring, \
0, 0, 0, POSIXLY_CORRECT); \
}
@ POSIXLY_CORRECT
Definition getopt.c:1118
int _getopt_internal(int argc, char **argv, const char *optstring, const struct option *longopts, int *longind, int long_only, int posixly_correct)
Definition getopt.c:715

◆ NONOPTION_P

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

Function Documentation

◆ _getopt_internal()

int _getopt_internal ( int argc,
char ** 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 ** argv,
const char * optstring,
const struct option * longopts,
int * longind,
int long_only,
struct _getopt_data * d,
int posixly_correct )

Variable Documentation

◆ optarg

char* optarg

◆ opterr

int opterr = 1

◆ optind

int optind = 1

◆ optopt

int optopt = '?'