aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/getopt/getopt.h
blob: ada96ecf0ac63c7acc0a7eb18572a348ddf4ed65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * This header is for a function released into the public domain
 * by AT&T in 1985. See the newsgroup posting:
 *
 * Newsgroups: mod.std.unix
 * Subject: public domain AT&T getopt source
 * Date: 3 Nov 85 19:34:15 GMT
 */
#ifndef _GETOPT_H_
#define _GETOPT_H_

extern int   optarr;
extern int   optind;
extern int   optopt;
extern char* optarg;

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

#endif /* _GETOPT_H_ */