MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_CreateStringReference

Function cJSON_CreateStringReference

external/cJSON/cJSON.c:2548–2558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2546}
2547
2548CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string)
2549{
2550 cJSON *item = cJSON_New_Item(&global_hooks);
2551 if (item != NULL)
2552 {
2553 item->type = cJSON_String | cJSON_IsReference;
2554 item->valuestring = (char*)cast_away_const(string);
2555 }
2556
2557 return item;
2558}
2559
2560CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
2561{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected