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

Function xmlXPathNewBoolean

ThirdParty/libxml2/vtklibxml2/xpath.c:4329–4340  ·  view source on GitHub ↗

* xmlXPathNewBoolean: * @val: the boolean value * * Create a new xmlXPathObjectPtr of type boolean and of value @val * * Returns the newly created object. */

Source from the content-addressed store, hash-verified

4327 * Returns the newly created object.
4328 */
4329xmlXPathObjectPtr
4330xmlXPathNewBoolean(int val) {
4331 xmlXPathObjectPtr ret;
4332
4333 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
4334 if (ret == NULL)
4335 return(NULL);
4336 memset(ret, 0 , sizeof(xmlXPathObject));
4337 ret->type = XPATH_BOOLEAN;
4338 ret->boolval = (val != 0);
4339 return(ret);
4340}
4341
4342/**
4343 * xmlXPathNewString:

Callers 2

xmlXPathCacheNewBooleanFunction · 0.85
xmlXPathConvertBooleanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected