MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / cJSON_IsString

Function cJSON_IsString

src/cJSON.c:2946–2954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2944}
2945
2946CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item)
2947{
2948 if (item == NULL)
2949 {
2950 return false;
2951 }
2952
2953 return (item->type & 0xFF) == cJSON_String;
2954}
2955
2956CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item)
2957{

Callers 2

cJSON_ArrayForEachFunction · 0.85
cJSON_GetStringValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected