X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstringmap%2F_info;h=7fa97c09835d24f13ad252d0b7d667e38cd80a85;hp=5ad40cac2d5d9847f3adb961f0491da592b2dccb;hb=b6b022724257b6061d813b422a6eac22571a32c7;hpb=703565490945abb062b20e043863c3ca0366f394 diff --git a/ccan/stringmap/_info b/ccan/stringmap/_info index 5ad40cac..7fa97c09 100644 --- a/ccan/stringmap/_info +++ b/ccan/stringmap/_info @@ -12,22 +12,22 @@ * * Example: * - * #include + * #include * - * static const char *get_string(void) { - * static char buffer[4096]; - * char *tail; - * if (!fgets(buffer, sizeof(buffer), stdin)) - * return NULL; - * tail = strchr(buffer, 0); - * if (tail>buffer && tail[-1]=='\n') - * *--tail = 0; - * if (!*buffer) - * return NULL; - * return buffer; - * } + * static const char *get_string(void) { + * static char buffer[4096]; + * char *tail; + * if (!fgets(buffer, sizeof(buffer), stdin)) + * return NULL; + * tail = strchr(buffer, 0); + * if (tail>buffer && tail[-1]=='\n') + * *--tail = 0; + * if (!*buffer) + * return NULL; + * return buffer; + * } * - * int main(void) { + * int main(void) { * stringmap(int) map = stringmap_new(NULL); * const char *string; * @@ -49,8 +49,9 @@ * return 0; * } * - * Authors: Joey Adams, Anders Magnusson - * License: BSD + * Authors: Joey Adams, Anders Magnusson + * License: BSD (3 clause) + * Version: 0.2 */ int main(int argc, char *argv[]) {