MCPcopy Create free account
hub / github.com/crossuo/crossuo / SaveFile

Method SaveFile

external/tinyxml2.cpp:2372–2388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2370
2371
2372XMLError XMLDocument::SaveFile( const char* filename, bool compact )
2373{
2374 if ( !filename ) {
2375 TIXMLASSERT( false );
2376 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2377 return _errorID;
2378 }
2379
2380 FILE* fp = callfopen( filename, "w" );
2381 if ( !fp ) {
2382 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=%s", filename );
2383 return _errorID;
2384 }
2385 SaveFile(fp, compact);
2386 fclose( fp );
2387 return _errorID;
2388}
2389
2390
2391XMLError 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