diff options
| author | Tyge Løvset <[email protected]> | 2022-10-21 09:31:17 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-21 09:31:17 +0200 |
| commit | 3eb08b0372dd669af535a368e8a8cdb8a9c793c5 (patch) | |
| tree | 05d70cd2fe623eddc94280767c88332d8773405f /examples/csmap_erase.c | |
| parent | 2cefae32252f3051f75f44f4718a62a1210bd3a7 (diff) | |
| download | STC-modified-3eb08b0372dd669af535a368e8a8cdb8a9c793c5.tar.gz STC-modified-3eb08b0372dd669af535a368e8a8cdb8a9c793c5.zip | |
Renamed size_t formatting macro c_zu to c_ZU (for replacing %zu on mingw64).
Diffstat (limited to 'examples/csmap_erase.c')
| -rw-r--r-- | examples/csmap_erase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/csmap_erase.c b/examples/csmap_erase.c index d05c32fe..97f45779 100644 --- a/examples/csmap_erase.c +++ b/examples/csmap_erase.c @@ -12,7 +12,7 @@ void printmap(mymap m) { c_foreach (elem, mymap, m) printf(" [%d, %s]", elem.ref->first, cstr_str(&elem.ref->second)); - printf("\nsize() == %" c_zu "\n\n", mymap_size(&m)); + printf("\nsize() == %" c_ZU "\n\n", mymap_size(&m)); } int main() @@ -77,7 +77,7 @@ int main() // The 3rd member function removes elements with a given Key size_t count = mymap_erase(&m3, 2); // The 3rd member function also returns the number of elements removed - printf("The number of elements removed from m3 is: %" c_zu "\n", count); + printf("The number of elements removed from m3 is: %" c_ZU "\n", count); puts("After the element with a key of 2 is deleted, the map m3 is:"); printmap(m3); } |
