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

Function xmlXPathCastBooleanToNumber

ThirdParty/libxml2/vtklibxml2/xpath.c:4855–4860  ·  view source on GitHub ↗

* xmlXPathCastBooleanToNumber: * @val: a boolean * * Converts a boolean to its number value * * Returns the number value */

Source from the content-addressed store, hash-verified

4853 * Returns the number value
4854 */
4855double
4856xmlXPathCastBooleanToNumber(int val) {
4857 if (val)
4858 return(1.0);
4859 return(0.0);
4860}
4861
4862/**
4863 * xmlXPathCastStringToNumber:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected