Diff for libcfg+/doc/examples/example.c between version 1.2 and 1.3
| version 1.2, 2002/07/16 13:43:18 |
version 1.3, 2002/09/25 17:44:29 |
| Line 42 int main(int argc, char **argv) |
|
| Line 42 int main(int argc, char **argv) |
|
| |
|
| /* Option set */ |
/* Option set */ |
| struct cfg_option options[] = { |
struct cfg_option options[] = { |
| {"help", 'h', NULL, CFG_BOOL, (void *) &help, 0}, |
{"help", 'h', NULL, CFG_BOOL, (void *) &help, 0}, |
| {"verbose", 'v', "verbose", CFG_BOOL+CFG_MULTI, (void *) &verbose, 0}, |
{"nice", 'n', "nice", CFG_INT, (void *) &nice, 0}, |
| {NULL, 'f', NULL, CFG_STRING, (void *) &cfg_file, 0}, |
{"verbose", 'v', "verbose", CFG_BOOL+CFG_MULTI,(void *) &verbose, 0}, |
| {"nice", 'n', "nice", CFG_INT, (void *) &nice, 0}, |
{NULL, 'f', NULL, CFG_STR, (void *) &cfg_file, 0}, |
| {NULL, '\0', "command", CFG_STRING+CFG_MULTI_SEPARATED+CFG_LEFTOVER_ARGS, |
{NULL, '\0', "command", CFG_STR+CFG_MULTI_SEPARATED+CFG_LEFTOVER_ARGS, |
| (void *) &command, 0}, |
(void *) &command, 0}, |
| CFG_END_OF_LIST |
CFG_END_OF_LIST |
| }; |
}; |
| |
|
| /* Creating context */ |
/* Creating context */ |
Platon Group <platon@platon.org> http://platon.org/
|
|