1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#ifndef GETOPT_H
#define GETOPT_H

int getopt(int nargc, char* const nargv[], const char* ostr);

extern int     opterr,             /* if error message should be printed */
               optind,             /* index into parent argv vector */
               optopt,             /* character checked for validity */
               optreset;           /* reset getopt */
extern char*   optarg;             /* argument associated with option */

#endif