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

Function xmlBufIsEmpty

ThirdParty/libxml2/vtklibxml2/buf.c:609–617  ·  view source on GitHub ↗

* xmlBufIsEmpty: * @buf: the buffer * * Tell if a buffer is empty * * Returns 0 if no, 1 if yes and -1 in case of error */

Source from the content-addressed store, hash-verified

607 * Returns 0 if no, 1 if yes and -1 in case of error
608 */
609int
610xmlBufIsEmpty(const xmlBufPtr buf)
611{
612 if ((!buf) || (buf->error))
613 return(-1);
614 CHECK_COMPAT(buf)
615
616 return(buf->use == 0);
617}
618
619/**
620 * xmlBufResize:

Callers 4

xmlSwitchInputEncodingFunction · 0.85
xmlParseDocumentFunction · 0.85
xmlParseChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected