summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-17 18:33:55 +0100
committerTyge Løvset <[email protected]>2021-01-17 18:33:55 +0100
commit67f0270a59f0e83b39ac8792a0cf322ea43be39e (patch)
tree95b6d8ffd0096902b7410de616c39b3e78ac519b /examples
parentc53d2f0603ae86447e98b697c3d86d710be8ac2d (diff)
downloadSTC-modified-67f0270a59f0e83b39ac8792a0cf322ea43be39e.tar.gz
STC-modified-67f0270a59f0e83b39ac8792a0cf322ea43be39e.zip
Small tweaks.
Diffstat (limited to 'examples')
-rw-r--r--examples/csmap_ex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/csmap_ex.c b/examples/csmap_ex.c
index 14d21b67..dac82339 100644
--- a/examples/csmap_ex.c
+++ b/examples/csmap_ex.c
@@ -32,7 +32,10 @@ int main(int argc, char **argv)
puts("");
csmap_i_iter_t it;
- printf("min/max: %d -- %d: %d\n\n", csmap_i_front(&map)->first, csmap_i_back(&map)->first, csmap_i_find(&map, 500000, &it) != NULL);
+ printf("min/max: %d -- %d: %d: %zu\n\n", csmap_i_front(&map)->first,
+ csmap_i_back(&map)->first,
+ csmap_i_find(&map, 500000, &it) != NULL,
+ csmap_i_size(map));
c_foreach (i, csmap_i, it, csmap_i_end(&map))
printf("-- %d: %d\n", i.ref->first, i.ref->second);