¡@

Home 

c++ Programming Glossary: optind

Using getopt to parse program arguments in c++

http://stackoverflow.com/questions/2219562/using-getopt-to-parse-program-arguments-in-c

is considered an option with no parameter and optind is set to the index of parameterForB in argv The desired behavior.. then optarg shall contain the next element of argv and optind shall be incremented by 2. If the resulting value of optind.. shall be incremented by 2. If the resulting value of optind is greater than argc this indicates a missing option argument..