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

#define BADARG   (int)':'

Definition at line 54 of file getopt.c.

Referenced by getopt().

#define BADCH   (int)'?'

Definition at line 53 of file getopt.c.

Referenced by getopt().

#define EMSG   (char*)""

Definition at line 55 of file getopt.c.

Referenced by getopt().

Function Documentation

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

int optopt

Definition at line 48 of file getopt.c.

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

int optreset

Definition at line 48 of file getopt.c.

Referenced by getopt().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors