摘要: getopt(分析命令行参数)相关函数表头文件 #include extern char *optarg; //选项的参数指针 extern int optind, //下一次调用getopt的时,从optind存储的位置处重新开始检查选项。 extern int opterr, //当opterr=0时,getopt不向stderr输出错误信息。 extern int optopt; //当命令行选项字符不包括在optstring中或者选项缺少必要的参数时,该选项存储在optopt 中,getopt返回'?’、定义函数 int getopt(int argc,char * cons. 阅读全文
posted @ 2014-03-07 10:25 ★行云流水★ 阅读(1006) 评论(0) 推荐(0) 编辑