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

Function xmlInitEncodingInternal

ThirdParty/libxml2/vtklibxml2/encoding.c:1422–1429  ·  view source on GitHub ↗

* xmlInitEncodingInternal: * * Initialize the char encoding support. */

Source from the content-addressed store, hash-verified

1420 * Initialize the char encoding support.
1421 */
1422void
1423xmlInitEncodingInternal(void) {
1424 unsigned short int tst = 0x1234;
1425 unsigned char *ptr = (unsigned char *) &tst;
1426
1427 if (*ptr == 0x12) xmlLittleEndian = 0;
1428 else xmlLittleEndian = 1;
1429}
1430
1431/**
1432 * xmlCleanupCharEncodingHandlers:

Callers 1

xmlInitParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected