+
For example, you can have an static array of five unsigned integers:
+
- static uns array[] = { 1, 2, 3, 4, 5 };
+ static uint array[] = { 1, 2, 3, 4, 5 };
+
static struct cf_section section = {
CF_ITEMS {
- CF_UNS_ARY("array", array, 5),
+ CF_UINT_ARY("array", array, 5),
CF_END
}
};
*Dynamic arrays*::
Similar to static array, but you provide pointer
to pointer to the given item (eg. if you want dynamic array of
- integers, you give `**int`). The parser allocates a growing array
- (see `gary.h`) of the required size.
+ integers, you give `**int`). The parser allocates a <<gary:,growing array>>
+ of the required size.
+
If you want dynamic array of strings, you would use:
+
is added. If it fails, the first one is replayed and the rollback
entry is removed.
-See <<cf_reload()>>.
+See @cf_reload().
[[custom_parser]]
Creating custom parsers