MCPcopy Create free account
hub / github.com/esnet/iperf / cJSON_ParseWithOpts

Function cJSON_ParseWithOpts

src/cjson.c:1090–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
1091{
1092 size_t buffer_length;
1093
1094 if (NULL == value)
1095 {
1096 return NULL;
1097 }
1098
1099 /* Adding null character size due to require_null_terminated. */
1100 buffer_length = strlen(value) + sizeof("");
1101
1102 return cJSON_ParseWithLengthOpts(value, buffer_length, return_parse_end, require_null_terminated);
1103}
1104
1105/* Parse an object - create a new root, and populate. */
1106CJSON_PUBLIC(cJSON *) cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)

Callers 1

cJSON_ParseFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…