摘要:
getopt可以获取短参数(-a -b -c),其包含在unistd.h中。函数: int getopt (int argc, char *const *argv, const char *options) 变量:int opterr 如果此变量的值非零,则如果getopt遇到未知的选项字符或缺少必 阅读全文
posted @ 2020-12-05 14:30
稀里糊涂的胡闹
阅读(288)
评论(0)
推荐(0)
摘要:
getopt_long可以解析短参数(-a -b -c)和长参数(--add --delete --create),其定义在getopt.h中。 函数: int getopt_long (int argc, char *const *argv, const char *shortopts, cons 阅读全文
posted @ 2020-12-05 13:46
稀里糊涂的胡闹
阅读(321)
评论(0)
推荐(0)