struct option { const char name; / has_arg can’t be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; };
/* Names for the values of the has_arg' field of
struct option'. */
define no_argument 0
define required_argument 1
define optional_argument 2
#endif /* need getopt */ }}}
Thank you, genius… –This line, and those below, will be ignored–
不求甚解的库程序员真可怕…
解决方案:
本文网址:http://blog.perlfect.me/2011/11/23/thank-you-genius-gnu-c-programmer.html