MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_GetStringValue

Function cJSON_GetStringValue

libapp2sys/src/main/cpp/cjson/cJSON.c:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item) {
76 if (!cJSON_IsString(item)) {
77 return NULL;
78 }
79
80 return item->valuestring;
81}
82
83/* This is a safeguard to prevent copy-pasters from using incompatible C and header files */
84#if (CJSON_VERSION_MAJOR != 1) || (CJSON_VERSION_MINOR != 7) || (CJSON_VERSION_PATCH != 10)

Callers 1

cJSON.hFile · 0.85

Calls 1

cJSON_IsStringFunction · 0.85

Tested by

no test coverage detected