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

Function cJSON_CreateObject

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

Source from the content-addressed store, hash-verified

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

Callers 1

cJSON_AddObjectToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected