X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstrmap%2F_info;h=c128cc27b5c3cbe941cd5e72a4bef2ae2c043f91;hb=fd96a212810bff1574b047c9079e3e050feb8a28;hp=6d03b0caaa9c4c81ec30bba34e66e3dddf4d7dbb;hpb=516c47790828cfb892fecdbe03a6928c345d29b2;p=ccan diff --git a/ccan/strmap/_info b/ccan/strmap/_info index 6d03b0ca..c128cc27 100644 --- a/ccan/strmap/_info +++ b/ccan/strmap/_info @@ -1,5 +1,6 @@ -#include #include "config.h" +#include +#include /** * strmap - an ordered map of strings to values @@ -28,7 +29,7 @@ * int main(int argc, char *argv[]) * { * size_t i; - * struct { STRMAP_MEMBERS(size_t); } map; + * STRMAP(size_t) map; * * strmap_init(&map); * for (i = 1; i < argc; i++) @@ -39,9 +40,9 @@ * printf("\n"); * return 0; * } - * // Given 'foo' outputs 'foo at 1. ' - * // Given 'foo bar' outputs 'bar at 2. foo at 1. ' - * // Given 'foo foo bar zebra' outputs 'bar at 3. foo at 1. zebra at 4. ' + * // Given "foo" outputs "foo at 1. \n" + * // Given "foo bar" outputs "bar at 2. foo at 1. \n" + * // Given "foo foo bar zebra" outputs "bar at 3. foo at 1. zebra at 4. \n" */ int main(int argc, char *argv[]) {