#include "mimotera++/optlist.h"#include <stdio.h>#include <stdlib.h>#include <string.h>

Go to the source code of this file.
Functions | |
| option_t * | MakeOpt (const char option, char *const argument, const int index) |
| option_t * | GetOptList (const int argc, char *const argv[], char *const options) |
| void | FreeOptList (option_t *list) |
| 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.

| option_t * MakeOpt | ( | const char | option, | |
| char *const | argument, | |||
| const int | index | |||
| ) |
Definition at line 182 of file optlist.c.
References option_t::argIndex, option_t::argument, option_t::next, and option_t::option.
Referenced by GetOptList().
1.5.7.1