getoptsl.h
来自「C语言库函数的源代码,是C语言学习参考的好文档。」· C头文件 代码 · 共 39 行
H
39 行
/* +++Date last modified: 05-Jul-1997 */
/*
** GETOPTS.H
**
** public domain by Bob Stout
*/
#ifndef GETOPTS__H
#define GETOPTS__H
#include <stdlib.h> /* For size_t */
#include "sniptype.h"
typedef enum {
Error_Tag = -1,
Boolean_Tag,
Word_Tag,
DWord_Tag,
Double_Tag,
String_Tag
} TAG_TYPE;
struct Option_Tag {
int letter; /* Option switch */
TAG_TYPE type; /* Type of option */
void *buf; /* Storage location */
size_t siz; /* Size of buffer (used
only for strings */
};
extern struct Option_Tag options[];
extern int xargc;
extern char *xargv[];
int getopts_lite(int, char *[]);
#endif /* GETOPTS__H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?