MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / cJSON_ParseWithOpts

Function cJSON_ParseWithOpts

TheForceEngine/TFE_System/cJSON.c:1084–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082}
1083
1084CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
1085{
1086 size_t buffer_length;
1087
1088 if (NULL == value)
1089 {
1090 return NULL;
1091 }
1092
1093 /* Adding null character size due to require_null_terminated. */
1094 buffer_length = strlen(value) + sizeof("");
1095
1096 return cJSON_ParseWithLengthOpts(value, buffer_length, return_parse_end, require_null_terminated);
1097}
1098
1099/* Parse an object - create a new root, and populate. */
1100CJSON_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