MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / SaveFile

Method SaveFile

Source/ThirdParty/tinyxml2/tinyxml2.cpp:2247–2263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2245
2246
2247XMLError XMLDocument::SaveFile( const char* filename, bool compact )
2248{
2249 if ( !filename ) {
2250 TIXMLASSERT( false );
2251 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2252 return _errorID;
2253 }
2254
2255 FILE* fp = callfopen( filename, "w" );
2256 if ( !fp ) {
2257 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=%s", filename );
2258 return _errorID;
2259 }
2260 SaveFile(fp, compact);
2261 fclose( fp );
2262 return _errorID;
2263}
2264
2265
2266XMLError 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