老僧非是爱花红

导航

2020年7月13日 #

getopt_long()备忘

摘要: 用途 getopt_long()用于解析类似于 --version --config configfile 这样的长选项。 如何使用 1、定义struct option数组 struct option { cosnt char* name; //长选项的名称。 比如 ./xx --config de 阅读全文

posted @ 2020-07-13 02:49 老僧非是爱花红 阅读(135) 评论(0) 推荐(0) 编辑