Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

attgetopt.c File Reference

#include <stdio.h>
#include <string.h>

Include dependency graph for attgetopt.c:

Include dependency graph

Go to the source code of this file.

Defines

#define ERR(s, c)   if (opterr) (void) fprintf(stderr, "%s: %s\n", argv[0], s)

Functions

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

Variables

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


Detailed Description

AT&T's public domain implementation of getopt.

From the mod.sources newsgroup, volume 3, issue 58, with modifications to bring it up to 21st century C.

Taken from Kannel Project (http://www.kannel.org/)

Definition in file attgetopt.c.


Define Documentation

#define ERR s,
     if (opterr) (void) fprintf(stderr, "%s: %s\n", argv[0], s)
 

Definition at line 18 of file attgetopt.c.

Referenced by getopt().


Function Documentation

int getopt int    argc,
char **    argv,
char *    opts
 

Definition at line 25 of file attgetopt.c.

References ERR, NULL, optarg, optind, and optopt.

Referenced by main().


Variable Documentation

char* optarg
 

Definition at line 23 of file attgetopt.c.

Referenced by getopt().

int opterr = 1
 

Definition at line 20 of file attgetopt.c.

int optind = 1
 

Definition at line 21 of file attgetopt.c.

Referenced by getopt().

int optopt
 

Definition at line 22 of file attgetopt.c.

Referenced by getopt().


Generated on Mon Nov 24 20:09:43 2003 for WBXML Library by doxygen1.3-rc1