MCPcopy Create free account
hub / github.com/Netis/cloud-probe / cJSON_ParseWithOpts

Function cJSON_ParseWithOpts

cpworker/src/cJSON/cJSON.c:1088–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

unix_manager_acceptFunction · 0.85
unix_command_executeFunction · 0.85
cJSON_ParseFunction · 0.85

Calls 1

Tested by

no test coverage detected