Internal constructor. */
| 201 | |
| 202 | /* Internal constructor. */ |
| 203 | static cJSON *cJSON_New_Item(const internal_hooks * const hooks) |
| 204 | { |
| 205 | cJSON* node = (cJSON*)hooks->allocate(sizeof(cJSON)); |
| 206 | if (node) |
| 207 | { |
| 208 | memset(node, '\0', sizeof(cJSON)); |
| 209 | } |
| 210 | |
| 211 | return node; |
| 212 | } |
| 213 | |
| 214 | /* Delete a cJSON structure. */ |
| 215 | CJSON_PUBLIC(void) cJSON_Delete(cJSON *item) |
no test coverage detected