getopt.c File Reference
#include "squid.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for getopt.c:

Go to the source code of this file.

Macros

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

Functions

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

Variables

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

Macro Definition Documentation

◆ BADARG

#define BADARG   (int)':'

Definition at line 54 of file getopt.c.

◆ BADCH

#define BADCH   (int)'?'

Definition at line 53 of file getopt.c.

◆ EMSG

#define EMSG   (char*)""

Definition at line 55 of file getopt.c.

Function Documentation

◆ getopt()

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

Definition at line 62 of file getopt.c.

References BADARG, BADCH, EMSG, NULL, optarg, opterr, optind, optopt, and optreset.

Referenced by main(), parseCommandline(), and process_options().

Variable Documentation

◆ optarg

◆ opterr

◆ optind

◆ optopt

int optopt

Definition at line 49 of file getopt.c.

Referenced by getopt(), main(), and process_options().

◆ optreset

int optreset

Definition at line 50 of file getopt.c.

Referenced by getopt().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors