MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / cJSON_DeleteItemFromArray

Function cJSON_DeleteItemFromArray

outofcore/src/cJSON.cpp:532–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530 return c;
531}
532void cJSON_DeleteItemFromArray(cJSON *array,int which) {cJSON_Delete(cJSON_DetachItemFromArray(array,which));}
533cJSON *cJSON_DetachItemFromObject(cJSON *object,const char *string) {int i=0;cJSON *c=object->child;while (c && cJSON_strcasecmp(c->string,string)) i++,c=c->next;if (c) return cJSON_DetachItemFromArray(object,i);return nullptr;}
534void cJSON_DeleteItemFromObject(cJSON *object,const char *string) {cJSON_Delete(cJSON_DetachItemFromObject(object,string));}
535

Callers

nothing calls this directly

Calls 2

cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected