发布时间:2014-06-20 11:53:28
#define typecheck(type,x) \({type __dummy; \ typeof(x) __dummy2; \ (void)(&__dummy == &__dummy2); \ 1; \ .........【阅读全文】
发布时间:2014-06-09 16:26:54
int getopt_long(int argc, char * const argv[],const char *optstring, const struct option *longopts,int *longindex);int getopt(int argc, char * const argv[], const char *optstring);如果optstring短参数中第一个是符号-,则case 语句写1来匹配。char *short_options="-abc:"; while((c = geto.........【阅读全文】