MCPcopy Create free account
hub / github.com/OpenIPC/firmware / cJSON_ParseWithOpts

Function cJSON_ParseWithOpts

general/package/xmdp/src/cjson/cJSON.c:1073–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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