my_getopt.h

来自「模仿cisco路由器」· C头文件 代码 · 共 29 行

H
29
字号
/*	Copyright (C) 2002, 2003 Slava Astashonok <sla@0n.ru>	This program is free software; you can redistribute it and/or	modify it under the terms of the GNU General Public License.	$Id: my_getopt.h,v 1.1.1.1.2.2 2003/10/10 07:45:10 sla Exp $*/#ifndef _MY_GETOPT_H_#define _MY_GETOPT_H_#define MY_GETOPT_ARG_REQUIRED 0x1#define MY_GETOPT_REQUIRED 0x2#define MY_GETOPT_ALLOW_REPEAT 0x4#define MY_GETOPT_MAX_OPTSTR 4096struct getopt_parms {	char name;	int flag;	int count;	char *arg;};int my_getopt(int argc, char * const argv[], struct getopt_parms parms[]);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?