hab-matches-type-and-id.c
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C语言 代码 · 共 25 行
C
25 行
#include <string.h>#include "bionet-util.h"int bionet_hab_matches_type_and_id(const bionet_hab_t *hab, const char *type, const char *id) { if ( ( (strcmp(type, "*") == 0) || (strcmp(type, hab->type) == 0) ) && ( (strcmp(id, "*") == 0) || (strcmp(id, hab->id) == 0) ) ) { return 1; } return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?