MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_IsNumber

Function cJSON_IsNumber

general/package/xmdp/src/cjson/cJSON.c:2913–2921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2911}
2912
2913CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item)
2914{
2915 if (item == NULL)
2916 {
2917 return false;
2918 }
2919
2920 return (item->type & 0xFF) == cJSON_Number;
2921}
2922
2923CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item)
2924{

Callers 2

get_json_intvalFunction · 0.85
cJSON_GetNumberValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected