J
John Bode
<snip>
[moar snip]
****
I replied:
***
it's an array of structs. Each struct seems to have a string (char*)
member, maybe two into and a char. If you want to know more about the
struct find the definition.
***
....which is more than likely in the usb_modeswitch.h file #included at
the beginning of the program.
The line
static struct option long_option[]
declares an array named "long_option" of type "struct option" with
storage class "static" (which among other things prevents the symbol
name from being exported to the linker, essentially making it
"private" to this source file, but not in the way most OO types would
think of "private") and initializes it with the values between the
brackets; the size is determined from the number of initializers.
Since each element of the array is of struct type, each initializer in
the list is also bracketed with { and }.
Again, probably in the usb_modeswitch.h file.