diff options
| author | Tyge Løvset <[email protected]> | 2020-09-18 11:55:29 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-09-18 11:55:29 +0200 |
| commit | 681873e4cb6ea076b79c6c70b2df2ba4e4c19bda (patch) | |
| tree | 69c0c3290189163937d4ab4203fe4565094657b0 /examples/phonebook.c | |
| parent | 692ab82818e2d65177e06d7717d9184b7bc27ff1 (diff) | |
| download | STC-modified-681873e4cb6ea076b79c6c70b2df2ba4e4c19bda.tar.gz STC-modified-681873e4cb6ea076b79c6c70b2df2ba4e4c19bda.zip | |
Changed <container>_ini macro constant to <container>_INIT, and <container>_destroy() to <container>_del.
Diffstat (limited to 'examples/phonebook.c')
| -rw-r--r-- | examples/phonebook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/phonebook.c b/examples/phonebook.c index 25d6ddb0..90d2fe22 100644 --- a/examples/phonebook.c +++ b/examples/phonebook.c @@ -36,7 +36,7 @@ void print_phone_book(cmap_str phone_book) int main(int argc, char **argv)
{
bool erased;
- cmap_str phone_book = cmap_ini;
+ cmap_str phone_book = cmap_INIT;
c_push_items(&phone_book, cmap_str, {
{"Lilia Friedman", "(892) 670-4739"},
{"Tariq Beltran", "(489) 600-7575"},
@@ -67,6 +67,6 @@ int main(int argc, char **argv) printf("\nPhone book after update phone of Zak Byers:\n");
print_phone_book(phone_book);
- cmap_str_destroy(&phone_book);
+ cmap_str_del(&phone_book);
puts("done");
}
\ No newline at end of file |
