File: getopt2.h

package info (click to toggle)
vfu 5.09-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,552 kB
  • sloc: cpp: 16,739; ansic: 2,605; perl: 678; makefile: 349; sh: 75
file content (40 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 *
 *  Copyright (C) 1994 Arno Schaefer
 *
 *  AU: Prototypen und externe Variablen fuer getopt ()
 *
 *  PO: ANSI C
 *
 */

/* see getopt.h for changes */
#ifndef GETOPT_H
#define GETOPT_H

/* next line added by <cade@biscom.net> see getopt2.cpp for changes */
#define GETOPT(opts) while((optc = getopt2(argc, argv, opts)) != -1)


/* avoid C/C++ linkage declarations conflict with <getopt.h> */
extern "C" {

extern char *optarg;
extern int optind;
extern int opterr;
extern int optopt;
extern int optc;

/*
 * set this to `0' to avoid warning message from getopt when
 * reach unknown option
 */
extern int opterr_report;

} /* extern "C" */

/* name changed to getopt2 to avoid library function mismatch */

int getopt2(int argc, char *argv[], char *optstring);

#endif