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

Go to the source code of this file.

Functions

static int getopt (int argc, char *argv[], char *opts)
 

Variables

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

Function Documentation

static int getopt ( int  argc,
char *  argv[],
char *  opts 
)
static

Definition at line 43 of file getopt.c.

Referenced by main().

Variable Documentation

char* optarg
static

Definition at line 39 of file getopt.c.

Referenced by getopt(), and main().

int opterr = 1
static

Definition at line 36 of file getopt.c.

int optind = 1
static

Definition at line 37 of file getopt.c.

Referenced by getopt(), and main().

int optopt
static

Definition at line 38 of file getopt.c.

Referenced by getopt().