MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cJSON_DetachItemFromObject

Function cJSON_DetachItemFromObject

lib/cJSON.c:2001–2016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1999}
2000
2001cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string)
2002{
2003 size_t i = 0;
2004 cJSON *c = object->child;
2005 while (c && cJSON_strcasecmp((unsigned char*)c->string, (const unsigned char*)string))
2006 {
2007 i++;
2008 c = c->next;
2009 }
2010 if (c)
2011 {
2012 return DetachItemFromArray(object, i);
2013 }
2014
2015 return NULL;
2016}
2017
2018void cJSON_DeleteItemFromObject(cJSON *object, const char *string)
2019{

Callers 2

merge_patchFunction · 0.70

Calls 2

DetachItemFromArrayFunction · 0.85
cJSON_strcasecmpFunction · 0.70

Tested by

no test coverage detected