MCPcopy Create free account
hub / github.com/avast/retdec / SaveFile

Method SaveFile

deps/tinyxml2/tinyxml2.cpp:2325–2341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2323
2324
2325XMLError XMLDocument::SaveFile( const char* filename, bool compact )
2326{
2327 if ( !filename ) {
2328 TIXMLASSERT( false );
2329 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2330 return _errorID;
2331 }
2332
2333 FILE* fp = callfopen( filename, "w" );
2334 if ( !fp ) {
2335 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=%s", filename );
2336 return _errorID;
2337 }
2338 SaveFile(fp, compact);
2339 fclose( fp );
2340 return _errorID;
2341}
2342
2343
2344XMLError XMLDocument::SaveFile( FILE* fp, bool compact )

Callers

nothing calls this directly

Calls 2

callfopenFunction · 0.85
ClearErrorFunction · 0.85

Tested by

no test coverage detected