Update examples.
This commit is contained in:
1 parent
f388ed6808
commit
db7af704a6
39 files changed
+278
-169
No files matched your search
@@ -32,7 +32,10 @@ int intcmp(int a, int b)
|
||||
}
|
||||
|
||||
// Creates a hashmap of integers
|
||||
HASHMAP_GENERATE(hm, hashmap, /* FMOD */, int, double)
|
||||
CMC_GENERATE_HASHMAP(hm, hashmap, int, double);
|
||||
typedef struct hashmap hashmap;
|
||||
typedef struct hashmap_iter hashmap_iter;
|
||||
|
||||
|
||||
int main(int argc, char const *argv[])
|
||||
{
|
||||
@@ -224,7 +227,7 @@ int main(int argc, char const *argv[])
|
||||
// Dispose the iterator called by hm_iter_new()
|
||||
hm_iter_free(iter);
|
||||
// Dispose the hashmap created
|
||||
hm_free(my_map);
|
||||
hm_free(my_map, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user