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

Function xmlXPathNewFloat

ThirdParty/libxml2/vtklibxml2/xpath.c:4308–4319  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4306 * Returns the newly created object.
4307 */
4308xmlXPathObjectPtr
4309xmlXPathNewFloat(double val) {
4310 xmlXPathObjectPtr ret;
4311
4312 ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject));
4313 if (ret == NULL)
4314 return(NULL);
4315 memset(ret, 0 , sizeof(xmlXPathObject));
4316 ret->type = XPATH_NUMBER;
4317 ret->floatval = val;
4318 return(ret);
4319}
4320
4321/**
4322 * xmlXPathNewBoolean:

Callers 2

xmlXPathCacheNewFloatFunction · 0.85
xmlXPathConvertNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected