MCPcopy Create free account
hub / github.com/DFHack/dfhack / TiXmlFOpen

Function TiXmlFOpen

depends/tinyxml/tinyxml.cpp:39–50  ·  view source on GitHub ↗

Microsoft compiler security

Source from the content-addressed store, hash-verified

37
38// Microsoft compiler security
39FILE* TiXmlFOpen( const char* filename, const char* mode )
40{
41 #if defined(_MSC_VER) && (_MSC_VER >= 1400 )
42 FILE* fp = 0;
43 errno_t err = fopen_s( &fp, filename, mode );
44 if ( !err && fp )
45 return fp;
46 return 0;
47 #else
48 return fopen( filename, mode );
49 #endif
50}
51
52void TiXmlBase::EncodeString( const TIXML_STRING& str, TIXML_STRING* outString )
53{

Callers 2

LoadFileMethod · 0.85
SaveFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected