getopt_long.h

来自「sntop是一个基于curses的控制台工具」· C头文件 代码 · 共 35 行

H
35
字号
/* * sntop - simple network top - a top-like console network status tool * getopt.h - declarations needed for getopt_long() * 07.31.2000 * * robert m love	<rml@tech9.net> * chris m rivera	<cmrivera@ufl.edu> * * This is free software under the GNU Public License (see COPYING) * * Copyright (C) 2000 Robert M. Love and Christopher M. Rivera * * All code by the above authors unless otherwise specified. */#ifndef _GETOPT_LONG_H#define _GETOPT_LONG_H 1extern char *optarg;extern int optind;extern int opterr;extern int optopt;struct option {  const char *name;  int has_arg;  int *flag;  int val;};extern int getopt_long (int argc, char *const *argv, const char *shortopts,		        const struct option *longopts, int *longind);#endif /* _GETOPT_LONG_H */

⌨️ 快捷键说明

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