MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_ParseWithOpts

Function cJSON_ParseWithOpts

external/cJSON/cJSON.c:1131–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129}
1130
1131CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
1132{
1133 size_t buffer_length;
1134
1135 if (NULL == value)
1136 {
1137 return NULL;
1138 }
1139
1140 /* Adding null character size due to require_null_terminated. */
1141 buffer_length = strlen(value) + sizeof("");
1142
1143 return cJSON_ParseWithLengthOpts(value, buffer_length, return_parse_end, require_null_terminated);
1144}
1145
1146/* Parse an object - create a new root, and populate. */
1147CJSON_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