MCPcopy Index your code
hub / github.com/antirez/botlib / cJSON_ParseWithOpts

Function cJSON_ParseWithOpts

cJSON.c:1075–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
1076{
1077 size_t buffer_length;
1078
1079 if (NULL == value)
1080 {
1081 return NULL;
1082 }
1083
1084 /* Adding null character size due to require_null_terminated. */
1085 buffer_length = strlen(value) + sizeof("");
1086
1087 return cJSON_ParseWithLengthOpts(value, buffer_length, return_parse_end, require_null_terminated);
1088}
1089
1090/* Parse an object - create a new root, and populate. */
1091CJSON_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