diff options
| author | Tyge Løvset <[email protected]> | 2020-03-04 23:48:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-04 23:48:00 +0100 |
| commit | 1ea284cd25615cfa227ea91ee20bfee920086333 (patch) | |
| tree | 2dfde7756b82ffd7aafb16e22d4c03783bed4a4d | |
| parent | 6d8ed20bb0d85e01e08bcff7c25b367730f9c0ff (diff) | |
| download | STC-modified-1ea284cd25615cfa227ea91ee20bfee920086333.tar.gz STC-modified-1ea284cd25615cfa227ea91ee20bfee920086333.zip | |
Update README.md
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,8 +71,8 @@ CMap with CString keys, and CString values. Values are not handled internally. declare_CMap_STR(ss, CString, cstring_destroy); CMap(ss) table = cmap_initializer; -cmap_ss_put(&table, "Hello", 64); -cmap_ss_put(&table, "Groovy", 121); +cmap_ss_put(&table, "Hello", cstring_make("Goodbye")); +cmap_ss_put(&table, "Groovy", cstring_make("Shaky")); printf("%s\n", cmap_ss_get(&table, "Groovy")->value.str); cmap_ss_destroy(&table); // frees key and value CStrings, and hash table (CVector). ``` |
