📄 node-matches.c
字号:
#include <string.h>#include "bionet-util.h"int bionet_node_matches_id(const bionet_node_t *node, const char *id) { if ((strcmp(id, "*") == 0) || (strcmp(id, node->id) == 0)) { return 1; } return 0;}int bionet_node_matches_habtype_habid_nodeid(const bionet_node_t *node, const char *hab_type, const char *hab_id, const char *node_id) { if ( ( (strcmp(hab_type, "*") == 0) || (strcmp(hab_type, node->hab_type) == 0) ) && ( (strcmp(hab_id, "*") == 0) || (strcmp(hab_id, node->hab_id) == 0) ) && ( (strcmp(node_id, "*") == 0) || (strcmp(node_id, node->id) == 0) ) ) { return 1; } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -