hdf_dealloc_test.c
来自「在 linux平台上的网页编程的模板」· C语言 代码 · 共 29 行
C
29 行
#include "cs_config.h"#include <unistd.h>#include "util/neo_misc.h"#include "util/neo_hdf.h"#include "util/neo_rand.h"int main(int argc, char *argv[]){ HDF *hdf = NULL; int i, j; hdf_init(&hdf); ne_warn("creating 100000x10 nodes"); for (i = 0; i < 100000; i++) { char buffer[64]; for (j = 0; j < 10; j++) { snprintf(buffer, sizeof(buffer), "node.%d.test.%d", i, j); hdf_set_value(hdf, buffer, "test"); } } ne_warn("calling dealloc"); hdf_destroy(&hdf); // <-- this takes forever to return with a hugely return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?