diff options
| author | Tyge Løvset <[email protected]> | 2020-03-05 10:58:41 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-05 10:58:41 +0100 |
| commit | 003cdf867f7ffd0437ad4b9b99cfc221bc197e82 (patch) | |
| tree | 4ed4e3d020b8976bf98aacfc9ab2f444799c121a | |
| parent | 77b760f7b8e0daa36224d866f7716d0c2a07139a (diff) | |
| download | STC-modified-003cdf867f7ffd0437ad4b9b99cfc221bc197e82.tar.gz STC-modified-003cdf867f7ffd0437ad4b9b99cfc221bc197e82.zip | |
Update README.md
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,7 +54,7 @@ cmap_ii_destroy(&nums); Simple CMap with CString keys -> int values ``` #include "cmap.h" -declare_CMap_STR(si, int); // Just a shorthand macro for the general declare call. +declare_CMap_StringKey(si, int); // Just a shorthand macro for the general declare call. // Keys strings are "magically" managed internally, although CMap is ignorant of CString. CMap_si nums = cmap_initializer; @@ -74,7 +74,7 @@ cmap_si_destroy(&nums); CMap with CString keys -> CString values. Temporary values are created by "make", and moved to the container. ``` #include "cmap.h" -declare_CMap_STR(ss, CString, cstring_destroy); +declare_CMap_StringKey(ss, CString, cstring_destroy); CMap_ss table = cmap_initializer; cmap_ss_put(&table, "Hello", cstring_make("Goodbye")); |
