Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

# utils.c File Reference

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

Go to the source code of this file.

## Defines
#define | BADCH (int)'?'
#define | BADARG (int)':'
#define | EMSG ""
## Functions
int | getopt (int nargc, char *const *nargv, const char *ostr)
## Variables
int | opterr
char * | optarg
char * | __progname = "rpcapd"

## Define Documentation

#define BADARG (int)':'

| Definition at line 47 of file utils.c. Referenced by getopt().

#define BADCH (int)'?'

| Definition at line 46 of file utils.c. Referenced by getopt().

#define EMSG ""

| Definition at line 48 of file utils.c. Referenced by getopt().

## Function Documentation

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

| Definition at line 59 of file utils.c. References __progname, BADARG, BADCH, EMSG, optarg, and opterr. Referenced by main().

## Variable Documentation

char* __progname = "rpcapd"

| Definition at line 51 of file utils.c. Referenced by getopt().

char* optarg

| Definition at line 44 of file utils.c. Referenced by getopt(), and main().

int opterr

| Initial value:
     1
            optind = 1
            optopt
            optreset
Definition at line 40 of file utils.c. Referenced by getopt().

documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.