fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
Macros | Functions | Variables
getoptb.c File Reference

'getopt' version w/o stdlib More...

#include "buffer.h"
#include "getoptb.h"
Include dependency graph for getoptb.c:

Go to the source code of this file.

Macros

#define optind   subgetoptind
 
#define optproblem   subgetoptproblem
 
#define optpos   subgetoptpos
 
#define optarg   subgetoptarg
 
#define optdone   subgetoptdone
 

Functions

int getoptb (int argc, char **argv, char *opts)
 
int subgetopt (int argc, char **argv, char *opts)
 

Variables

int opterr = 1
 
char * optprogname = 0
 
int optind = 1
 
int optpos = 0
 
char * optarg = 0
 
int optproblem = 0
 
int optdone = SUBGETOPTDONE
 

Detailed Description

'getopt' version w/o stdlib

Author
djb ucspi-tcp

Definition in file getoptb.c.

Macro Definition Documentation

◆ optarg

#define optarg   subgetoptarg

Definition at line 43 of file getoptb.c.

◆ optdone

#define optdone   subgetoptdone

Definition at line 44 of file getoptb.c.

◆ optind

#define optind   subgetoptind

Definition at line 11 of file getoptb.c.

◆ optpos

#define optpos   subgetoptpos

Definition at line 42 of file getoptb.c.

◆ optproblem

#define optproblem   subgetoptproblem

Definition at line 12 of file getoptb.c.

Function Documentation

◆ getoptb()

int getoptb ( int  argc,
char **  argv,
char *  opts 
)

Definition at line 17 of file getoptb.c.

Here is the call graph for this function:

◆ subgetopt()

int subgetopt ( int  argc,
char **  argv,
char *  opts 
)

Definition at line 52 of file getoptb.c.

Here is the caller graph for this function:

Variable Documentation

◆ optarg

char* optarg = 0

Definition at line 48 of file getoptb.c.

◆ optdone

int optdone = SUBGETOPTDONE

Definition at line 50 of file getoptb.c.

◆ opterr

int opterr = 1

Definition at line 14 of file getoptb.c.

◆ optind

int optind = 1

Definition at line 46 of file getoptb.c.

◆ optpos

int optpos = 0

Definition at line 47 of file getoptb.c.

◆ optproblem

int optproblem = 0

Definition at line 49 of file getoptb.c.

◆ optprogname

char* optprogname = 0

Definition at line 15 of file getoptb.c.