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/mapmap.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/mapmap.c')
| -rw-r--r-- | examples/mapmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mapmap.c b/examples/mapmap.c index 6800601f..4e6c2f1a 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -1,7 +1,7 @@ #include <stdio.h>
#include <stc/cmap.h>
-#include <stc/cstr.h>
+#include <stc/cfmt.h>
using_cmap_str();
using_cmap_strkey(cfg, cmap_str, cmap_str_del);
@@ -20,7 +20,7 @@ int main(void) { c_foreach (i, cmap_cfg, config)
c_foreach (j, cmap_str, i.val->second)
- printf("%s: %s - %s (%u)\n", i.val->first.str, j.val->first.str, j.val->second.str, i.val->second.bucket_count);
+ c_print(1, "{}: {} - {} ({})\n", i.val->first.str, j.val->first.str, j.val->second.str, i.val->second.bucket_count);
cmap_cfg_del(&config);
}
\ No newline at end of file |
