aboutsummaryrefslogtreecommitdiffstats
path: root/cm-demo.c
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-04-12 08:32:54 +0200
committerFabrice <fabrice@schaub-dev.xyz>2026-04-12 08:32:54 +0200
commit1543cd4e298bf08ffbe4d962194fde800cee7367 (patch)
treed2e0a5ae1b9a9c3eeb87eeae99c4967e47699a7d /cm-demo.c
parent2983e797dde8bafb2e17aafd2cf0981d2d113afb (diff)
fix demo for new names
Diffstat (limited to 'cm-demo.c')
-rw-r--r--cm-demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cm-demo.c b/cm-demo.c
index 0e9f82d..cdcf7bb 100644
--- a/cm-demo.c
+++ b/cm-demo.c
@@ -49,7 +49,7 @@ void default_dealloc(cm_u8* ptr, cm_u8* user) {
int main(void) {
// Create a map: string -> int (word frequency counter)
struct cheesemap map;
- cm_new_(&map, const char*, int, NULL, hash_string, compare_string,
+ cm_init_(&map, const char*, int, NULL, hash_string, compare_string,
default_alloc, default_dealloc);
// Count word frequencies