X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fdoc%2Fconf.txt;h=31698a62b9d6f4fafb8ad78a6c6b1c535844356d;hb=d84b9fd101d2bf3a72b9dc1d603c9b3960e8cb17;hp=2bc7cf081e0b75ca88ff0b73fd8c1ea18dd42794;hpb=8cb58409406045bf50c67f4b0988a2e7b189b550;p=libucw.git diff --git a/ucw/doc/conf.txt b/ucw/doc/conf.txt index 2bc7cf08..31698a62 100644 --- a/ucw/doc/conf.txt +++ b/ucw/doc/conf.txt @@ -152,7 +152,7 @@ are three ways to do that: + For example, you can have an static array of five unsigned integers: + - static uns array = { 1, 2, 3, 4, 5 }; + static uns array[] = { 1, 2, 3, 4, 5 }; + static struct cf_section section = { CF_ITEMS { @@ -189,11 +189,12 @@ First element of your structure must be <>. + The first example is list of strings and uses <>: - struct clist list; ++ + static struct clist list; + static struct cf_section section = { CF_ITEMS { - CF_LIST("list", &list, &cf_string_list_cofnig), + CF_LIST("list", &list, &cf_string_list_config), CF_END } };