hashmap.c:用C实现哈希图

时间:2021-05-13 21:53:26
【文件属性】:
文件名称:hashmap.c:用C实现哈希图
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-13 21:53:26
C 哈希图 在C中的实现。 特征 使用哈希进行 通用接口,支持可变大小的项目。 内置或并允许使用其他算法。 ANSI C(C99) 支持自定义分配器 相当不错的表现。 :rocket: 例子 # include < stdio> # include < string> # include " hashmap.h " struct user { char *name; int age; }; int user_compare ( const void *a, const void *b, void *udata) { const struct user *ua = a; const struct user *ub = b; return strcmp (ua-> name , ub-> name ); } bool user_iter ( const
【文件预览】:
hashmap.c-master
----LICENSE(1KB)
----.package(29B)
----README.md(4KB)
----hashmap.c(27KB)
----hashmap.h(2KB)

网友评论