提供array和hashtable的存储引擎层的二进制安全支持,把入口函数修改为接收参数长度,将strlen、strcmp、strcpy替换。
This commit is contained in:
@@ -84,7 +84,7 @@ int kvs_hash_create(kvs_hash_t *hash) {
|
||||
}
|
||||
|
||||
//
|
||||
void kvs_hash_destory(kvs_hash_t *hash) {
|
||||
void kvs_hash_destroy(kvs_hash_t *hash) {
|
||||
|
||||
if (!hash) return;
|
||||
|
||||
@@ -275,7 +275,7 @@ int main() {
|
||||
ret = kvs_hash_exist(&hash, "Teacher1");
|
||||
printf("Exist Teacher1 ret : %d\n", ret);
|
||||
|
||||
kvs_hash_destory(&hash);
|
||||
kvs_hash_destroy(&hash);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user