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