diff options
| author | Tyge Løvset <[email protected]> | 2020-11-02 12:24:32 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-11-02 12:24:32 +0100 |
| commit | 7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d (patch) | |
| tree | 6debbbe87d6b671ec32b1c97bca1c48cf9f1e986 /examples/README.md | |
| parent | 0737c3feea3b8015d6db9440b8221374363272c9 (diff) | |
| download | STC-modified-7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d.tar.gz STC-modified-7171182ce7e0106f8f0fc47ed8f1fe1f58b2ea5d.zip | |
Changed (half)-internal *_INIT to *__init macros. Minor reformatting.
Diffstat (limited to 'examples/README.md')
| -rw-r--r-- | examples/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/README.md b/examples/README.md index 4c24d32a..114f6aac 100644 --- a/examples/README.md +++ b/examples/README.md @@ -58,7 +58,7 @@ using_cmap(vk, Viking, int, c_default_del, vikingraw_equals, vikingraw_hash, cmap_vk uses vikingraw_hash() for hash value calculations, and vikingraw_equals() for equality test. cmap_vk_del() will free all memory allocated for Viking keys and the hash table values. Finally, main which also demos the generic c_push_items() of multiple elements:
```C
int main() {
- cmap_vk vikings = cmap_INIT;
+ cmap_vk vikings = cmap_vk_init();
c_push_items(&vikings, cmap_vk, {
{ {"Einar", "Norway"}, 20},
{ {"Olaf", "Denmark"}, 24},
|
