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

Function cJSON_GetStringValue

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

Source from the content-addressed store, hash-verified

93}
94
95CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item)
96{
97 if (!cJSON_IsString(item))
98 {
99 return NULL;
100 }
101
102 return item->valuestring;
103}
104
105CJSON_PUBLIC(double) cJSON_GetNumberValue(cJSON *item)
106{

Callers 1

cJSON.hFile · 0.85

Calls 1

cJSON_IsStringFunction · 0.85

Tested by

no test coverage detected