Retrieves long arguments from a command line argument list.
#include <getopt.h> int getopt_long ( int argc, char * const argv[], const char *optstring, const struct option *longopts, int *longindex );
(IN) Specifies the number of elements in the argv parameter.
(IN) Points to an array of options.
(IN) Points to which short options to accept. Each option is a single character.
(IN) Points to an array of option structures which specify which long options to accept. The last element in the array must be a zero filled option structure.
(OUT) Points to the index into the longopts array for the long option.
When getopt_long has no more options to handle, it returns -1.
The getopt_long_only function parses options passed with a single hyphen (-) as short options and options passed with two hyphens (--) as long options.