NYC's Blog - 命令行参数解析函数getopt及getopt_long介绍 的评论 http://niyanchun.com/getopt-and-getopt_long.html zh-CN 1. getopt介绍getopt函数主要用来解析命令行参数,getopt族的函数原型如下:#include <unistd.h> int getopt(int argc, cha... Thu, 01 Jan 1970 08:00:00 +0800 Thu, 01 Jan 1970 08:00:00 +0800