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

Macros

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

Enumerations

enum  { POSIXLY_CORRECT = 1 }
 

Functions

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

Variables

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

Macro Definition Documentation

◆ _

#define _ ( msgid)
Value:
(msgid)

◆ attribute_hidden

#define attribute_hidden

◆ NONOPTION_P

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

◆ SWAP_FLAGS

#define SWAP_FLAGS ( ch1,
ch2 )

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
POSIXLY_CORRECT 

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,
int posixly_correct,
struct _getopt_data * d )

◆ 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 = '?'