diff options
| author | Tyge Løvset <[email protected]> | 2020-10-26 20:25:03 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-10-26 20:25:03 +0100 |
| commit | 0b95e794fe91b69928bb111d66fc973d18de7a1f (patch) | |
| tree | 35843d6e5f17e07a3cbb3f8b59df4965661a35d8 /examples/phonebook.c | |
| parent | 0c64199a35a8901a4969f8c2ce0c0483f184732c (diff) | |
| download | STC-modified-0b95e794fe91b69928bb111d66fc973d18de7a1f.tar.gz STC-modified-0b95e794fe91b69928bb111d66fc973d18de7a1f.zip | |
Updates examples using cfmt.h c_print().
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 c7a02e74..e567c442 100644 --- a/examples/phonebook.c +++ b/examples/phonebook.c @@ -23,14 +23,14 @@ #include <stdio.h>
#include <stc/cmap.h>
-#include <stc/cstr.h>
+#include <stc/cfmt.h>
using_cmap_str();
void print_phone_book(cmap_str phone_book)
{
c_foreach (i, cmap_str, phone_book)
- printf("%s\t- %s\n", i.val->first.str, i.val->second.str);
+ c_print(1, "{}\t- {}\n", i.val->first.str, i.val->second.str);
}
int main(int argc, char **argv)
|
