Skip to content
Snippets Groups Projects
Commit 465e858a authored by Marek Vavruša's avatar Marek Vavruša
Browse files

generic/map: cleanup doc

parent e2e7c46a
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,11 @@
* map.malloc = &mymalloc;
* map.baton = &mymalloc_context;
*
* // Insert keys
* if (map_set(&map, "princess") != 0 ||
* map_set(&map, "prince") != 0 ||
* map_set(&map, "leia") != 0) {
* // Insert k-v pairs
* int values = { 42, 53, 64 };
* if (map_set(&map, "princess", &values[0]) != 0 ||
* map_set(&map, "prince", &values[1]) != 0 ||
* map_set(&map, "leia", &values[2]) != 0) {
* fail();
* }
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment