| version 1.41, 2002/07/15 16:17:02 |
version 1.42, 2002/07/15 16:43:12 |
|
|
| /** |
/** |
| * Initialize command line context |
* Initialize command line context |
| * |
* |
| * @param argc number of arguments |
* @param begin_pos index of beginning argument of arguments array |
| |
* @param end_pos index of ending argument of arguments array |
| * @param argv arguments array |
* @param argv arguments array |
| * @param options pointer to options table |
* @param options pointer to options table |
| * @return initialized command line context |
* @return initialized command line context |
| */ |
*/ |
| CFG_CONTEXT cfg_get_cmdline_context( |
CFG_CONTEXT cfg_get_cmdline_context( |
| long argc, |
long begin_pos, |
| |
long end_pos, |
| char **argv, |
char **argv, |
| struct cfg_option *options); |
struct cfg_option *options); |
| |
|
| |
#define cfg_get_cmdline_context_by_argc(argc, argv, options) \ |
| |
cfg_get_cmdline_context(0, argc - 1, argv, options) |
| |
|
| /** |
/** |
| * Initialize config line context |
* Initialize config line context |
| * |
* |
|
|
| * Set context to command line |
* Set context to command line |
| * |
* |
| * @param con initialized context |
* @param con initialized context |
| * @param argc number of arguments |
* @param begin_pos index of beginning argument of arguments array |
| |
* @param end_pos index of ending argument of arguments array |
| * @param argv arguments array |
* @param argv arguments array |
| * @return void |
* @return void |
| */ |
*/ |
| void cfg_set_cmdline_context( |
void cfg_set_cmdline_context( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| long argc, |
long begin_pos, |
| |
long end_pos, |
| char **argv); |
char **argv); |
| |
|
| |
#define cfg_set_cmdline_context_by_argc(con, argc, argv) \ |
| |
cfg_set_cmdline_context(con, 0, argc - 1, argv) |
| |
|
| /** |
/** |
| * Set context to command line |
* Set context to command line |
| * |
* |