📄 hab-free.c
字号:
#include <stdlib.h>#include <glib.h>#include "bionet-util.h"void bionet_hab_free(bionet_hab_t *hab) { if (hab == NULL) { g_log(BIONET_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "bionet_hab_free(): NULL HAB passed in"); return; } if (hab->private != NULL) { g_log(BIONET_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "bionet_hab_free(): passed-in HAB has non-NULL private pointer, ignoring"); } if (hab->type != NULL) { free(hab->type); } if (hab->id != NULL) { free(hab->id); } bionet_hab_remove_all_nodes(hab); free(hab);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -