MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / callfopen

Function callfopen

externals/tinyxml2/tinyxml2.cpp:2310–2324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2308}
2309
2310static FILE* callfopen( const char* filepath, const char* mode )
2311{
2312 TIXMLASSERT( filepath );
2313 TIXMLASSERT( mode );
2314#if defined(_MSC_VER) && (_MSC_VER >= 1400 ) && (!defined WINCE)
2315 FILE* fp = 0;
2316 const errno_t err = fopen_s( &fp, filepath, mode );
2317 if ( err ) {
2318 return 0;
2319 }
2320#else
2321 FILE* fp = fopen( filepath, mode );
2322#endif
2323 return fp;
2324}
2325
2326void XMLDocument::DeleteNode( XMLNode* node ) {
2327 TIXMLASSERT( node );

Callers 2

LoadFileMethod · 0.85
SaveFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected