getopt.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 18 行
H
18 行
#ifndef __GETOPT_H
#define __GETOPT_H
extern char *optarg; /* argument of current option */
extern int optind; /* index of next argument; default=0: initialize */
extern int opterr; /* 0=disable error messages; default=1: enable */
extern char *optswchar; /* characters introducing options; default="-" */
extern enum _optmode {
GETOPT_UNIX, /* options at start of argument list (default) */
GETOPT_ANY, /* move non-options to the end */
GETOPT_KEEP, /* return options in order */
} optmode;
int getopt (int argc, char **argv, const char *opt_str);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?