⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getoptsl.h

📁 C语言库函数的源代码,是C语言学习参考的好文档。
💻 H
字号:
/* +++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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -