MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / SaveFile

Method SaveFile

native/thirdpart/tinyxml2/tinyxml2.cpp:2385–2401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2383
2384
2385XMLError XMLDocument::SaveFile( const char* filename, bool compact )
2386{
2387 if ( !filename ) {
2388 TIXMLASSERT( false );
2389 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2390 return _errorID;
2391 }
2392
2393 FILE* fp = callfopen( filename, "w" );
2394 if ( !fp ) {
2395 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=%s", filename );
2396 return _errorID;
2397 }
2398 SaveFile(fp, compact);
2399 fclose( fp );
2400 return _errorID;
2401}
2402
2403
2404XMLError XMLDocument::SaveFile( FILE* fp, bool compact )

Callers

nothing calls this directly

Calls 2

callfopenFunction · 0.85
SaveFileFunction · 0.50

Tested by

no test coverage detected