Macros | Functions | Variables
getopt.h File Reference
#include <string.h>
#include <stdio.h>
Include dependency graph for getopt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BADARG   (int)':'
 
#define BADCH   (int)'?'
 
#define EMSG   ""
 

Functions

int getopt (int nargc, char *const nargv[], const char *ostr)
 

Variables

const char * optarg
 
int opterr = 1
 
int optind = 1
 
int optopt
 
int optreset
 

Macro Definition Documentation

◆ BADARG

#define BADARG   (int)':'

Definition at line 12 of file getopt.h.

◆ BADCH

#define BADCH   (int)'?'

Definition at line 11 of file getopt.h.

◆ EMSG

#define EMSG   ""

Definition at line 13 of file getopt.h.

Function Documentation

◆ getopt()

int getopt ( int  nargc,
char *const  nargv[],
const char *  ostr 
)

Definition at line 20 of file getopt.h.

Variable Documentation

◆ optarg

const char* optarg

Definition at line 9 of file getopt.h.

◆ opterr

int opterr = 1

Definition at line 5 of file getopt.h.

◆ optind

int optind = 1

Definition at line 6 of file getopt.h.

◆ optopt

int optopt

Definition at line 7 of file getopt.h.

◆ optreset

int optreset

Definition at line 8 of file getopt.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:13