getopt:简单的getopt实现

时间:2021-05-07 06:35:46
【文件属性】:
文件名称:getopt:简单的getopt实现
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-07 06:35:46
C getopt-C中的命令行选项解析器 关于: 该模块旨在成为用于c / cpp-code的简单的argc / argv-parser。 getopt支持短(-s)和长(--long)选项,标志和帮助生成。 例子: 这是一个显示大多数功能的简单示例: # include < stdio> # include < getopt> int verbose = 0 ; // verbose flag static const getopt_option_t option_list[] = { { " help " , ' h ' , GETOPT_OPTION_TYPE_NO_ARG, 0x0 , ' h ' , " print this help text " , 0x0 }, { " verbose " , ' v ' , G
【文件预览】:
getopt-master
----.gitignore(31B)
----src()
--------getopt.c(8KB)
----.travis.yml(319B)
----LICENSE(949B)
----README.md(2KB)
----include()
--------getopt()
----example()
--------example.cpp(1KB)
----appveyor.yml(864B)
----bam.lua(3KB)
----test()
--------getopt_tests.cpp(13KB)
--------greatest.h(30KB)

网友评论