static struct option long_options[] = {
{"help", no_argument, 0, 'h'},
{"config", required_argument, 0, 'c'},
{"sampleIn", required_argument, 0, 's'},
{"submitDir", required_argument, 0, 'd'},
{"numEvents", required_argument, 0, 'n'},
{"official", no_argument, 0, 'o'},
{"noSubmit", no_argument, 0, 'x'},
{0,0,0,0}
};
at the code I pasted, there seems like to declared a struct named "option",but I am confused about the array declared after the struct name, what does this code do?
Appreciate for your answers, could you please have a brief explanation about the struct option?It seems like a struct already defined in some header file.