MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / removeFile

Method removeFile

other_src/astyle/src/astyle_main.cpp:1792–1802  ·  view source on GitHub ↗

remove a file and check for an error

Source from the content-addressed store, hash-verified

1790
1791// remove a file and check for an error
1792void ASConsole::removeFile(const char* fileName_, const char* errMsg) const
1793{
1794 remove(fileName_);
1795 if (errno == ENOENT) // no file is OK
1796 errno = 0;
1797 if (errno)
1798 {
1799 perror("errno message");
1800 error(errMsg, fileName_);
1801 }
1802}
1803
1804// rename a file and check for an error
1805void ASConsole::renameFile(const char* oldFileName, const char* newFileName, const char* errMsg) const

Callers

nothing calls this directly

Calls 1

errorFunction · 0.50

Tested by

no test coverage detected