Linux -- C语言中的命令行解析函数getopt()

#include <unistd.h>//头文件 int getopt(int argc, char * const argv[ ], const char * optstring);//函数声明 agrc, argv[] —main()函数传递过来的函数 optstring: 一个包含准确选项字符的字符串 返回值: 返回下一个选项, 当没有参数的最后一次调用时, getopt()将返回 -1;当
相关文章
相关标签/搜索