MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / cJSON_CreateObject

Function cJSON_CreateObject

src/cJSON.c:2533–2542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2531}
2532
2533CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2534{
2535 cJSON *item = cJSON_New_Item(&global_hooks);
2536 if (item)
2537 {
2538 item->type = cJSON_Object;
2539 }
2540
2541 return item;
2542}
2543
2544/* Create Arrays: */
2545CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)

Callers 2

save_settingsFunction · 0.85
cJSON_AddObjectToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected