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

Function xmlCopyError

ThirdParty/libxml2/vtklibxml2/error.c:1019–1035  ·  view source on GitHub ↗

* xmlCopyError: * @from: a source error * @to: a target error * * Save the original error to the new place. * * Returns 0 in case of success and -1 in case of error. */

Source from the content-addressed store, hash-verified

1017 * Returns 0 in case of success and -1 in case of error.
1018 */
1019int
1020xmlCopyError(const xmlError *from, xmlErrorPtr to) {
1021 const char *fmt = NULL;
1022
1023 if ((from == NULL) || (to == NULL))
1024 return(-1);
1025
1026 if (from->message != NULL)
1027 fmt = "%s";
1028
1029 return(xmlSetError(to, from->ctxt, from->node,
1030 from->domain, from->code, from->level,
1031 from->file, from->line,
1032 from->str1, from->str2, from->str3,
1033 from->int1, from->int2,
1034 fmt, from->message));
1035}
1036
1037/**
1038 * xmlErrString:

Callers 1

xmlVRaiseErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected