MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSchemaDupVal

Function xmlSchemaDupVal

ThirdParty/libxml2/vtklibxml2/xmlschemastypes.c:3795–3805  ·  view source on GitHub ↗

* xmlSchemaDupVal: * @v: the #xmlSchemaValPtr value to duplicate * * Makes a copy of @v. The calling program is responsible for freeing * the returned value. * * returns a pointer to a duplicated #xmlSchemaValPtr or NULL if error. */

Source from the content-addressed store, hash-verified

3793 * returns a pointer to a duplicated #xmlSchemaValPtr or NULL if error.
3794 */
3795static xmlSchemaValPtr
3796xmlSchemaDupVal (xmlSchemaValPtr v)
3797{
3798 xmlSchemaValPtr ret = xmlSchemaNewValue(v->type);
3799 if (ret == NULL)
3800 return NULL;
3801
3802 memcpy(ret, v, sizeof(xmlSchemaVal));
3803 ret->next = NULL;
3804 return ret;
3805}
3806
3807/**
3808 * xmlSchemaCopyValue:

Callers 3

xmlSchemaCopyValueFunction · 0.85
_xmlSchemaDateAddFunction · 0.85
xmlSchemaDateNormalizeFunction · 0.85

Calls 1

xmlSchemaNewValueFunction · 0.85

Tested by

no test coverage detected