diff options
| author | Tyge Løvset <[email protected]> | 2020-11-26 15:08:07 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-11-26 15:08:07 +0100 |
| commit | bdea38e432d109ba416d7f980f124da285d69a4f (patch) | |
| tree | effeb89e993b01f374d5a44ce0b859f979ed7f27 /examples/mapmap.c | |
| parent | 65ad066312ed549472814e1576cec2f0dc0f51ea (diff) | |
| download | STC-modified-bdea38e432d109ba416d7f980f124da285d69a4f.tar.gz STC-modified-bdea38e432d109ba416d7f980f124da285d69a4f.zip | |
Removed stc/cfmt.h, as _Generic requires C11. I have made it a gist: https://gist.github.com/tylov/bcc956a4779f1d14204e66a14f17beb9
All examples are reverted to use printf() instead of 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 9e637dde..2ee46e8f 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -1,7 +1,7 @@ #include <stdio.h>
#include <stc/cmap.h>
-#include <stc/cfmt.h>
+#include <stc/cstr.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)
- c_print(1, "{}: {} - {} ({})\n", i.val->first.str, j.val->first.str, j.val->second.str, i.val->second.bucket_count);
+ printf("%s: %s - %s (%u)\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 |
