node-matches.c
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C语言 代码 · 共 37 行
C
37 行
#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 + =
减小字号Ctrl + -
显示快捷键?