getopt() getopt()函数的作用:解析命令行参数。 当命令行中的元素以" "开头,那么该元素(argv[i])就是参数选项,其后的字符串就是参数。参数选项列表通过 optstring 指定。 测试代码如下: The variable optind is the index of the Read More
posted @ 2019-06-06 20:57 suonikeyinsu Views(492) Comments(0) Diggs(0) Edit