Internal constructor. */
| 239 | |
| 240 | /* Internal constructor. */ |
| 241 | static cJSON *cJSON_New_Item(const internal_hooks * const hooks) |
| 242 | { |
| 243 | cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); |
| 244 | if (node) |
| 245 | { |
| 246 | memset(node, '\0', sizeof(cJSON)); |
| 247 | } |
| 248 | |
| 249 | return node; |
| 250 | } |
| 251 | |
| 252 | /* Delete a cJSON structure. */ |
| 253 | CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) |
no outgoing calls
no test coverage detected
searching dependent graphs…