Go to the source code of this file.
Classes | |
struct | option_t |
Defines | |
#define | OL_NOINDEX -1 |
Functions | |
option_t * | GetOptList (int argc, char *const argv[], char *const options) |
void | FreeOptList (option_t *list) |
#define OL_NOINDEX -1 |
void FreeOptList | ( | option_t * | list | ) |
Function to clean up the memory
list | A pointer to the object to be deleted |
Definition at line 213 of file optlist.c.
References option_t::next.
option_t* GetOptList | ( | int | argc, | |
char *const | argv[], | |||
char *const | options | |||
) |
Function to get the option parser Calling this function will cause the command line options to be parsed and stored into option_t strucutures
Use the options string to define all the possible valid options. A colon immediately after an option defines that that particular option takes one argument.
argc | The argc as coming from the main() | |
argv | The argc as coming from the main() | |
options | A list of valid options |
Definition at line 97 of file optlist.c.
References option_t::argIndex, option_t::argument, MakeOpt(), option_t::next, and OL_NOINDEX.