File: wingetopt.h

package info (click to toggle)
gobject-introspection 1.86.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,464 kB
  • sloc: ansic: 562,805; python: 23,750; xml: 16,240; perl: 1,878; yacc: 1,720; sh: 1,139; lex: 513; cpp: 487; makefile: 197; javascript: 15; lisp: 1
file content (25 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (12)
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
#ifdef __cplusplus
extern "C" {
#endif

#ifndef WIN32
	#include <getopt.h>
#else
	#ifndef _GETOPT_
	#define _GETOPT_

	#include <stdio.h>                  /* for EOF */ 
	#include <string.h>                 /* for strchr() */ 

	char *optarg = NULL;    /* pointer to the start of the option argument  */ 
	int   optind = 1;       /* number of the next argv[] to be evaluated    */ 
	int   opterr = 1;       /* non-zero if a question mark should be returned */

	int getopt(int argc, char *argv[], char *opstring); 
	#endif //_GETOPT_
#endif //WIN32

#ifdef __cplusplus
}
#endif