This commit is contained in:
2022-05-07 16:25:39 +08:00
parent 930cac261b
commit 966aeb8d64
4 changed files with 104 additions and 0 deletions

View File

@@ -535,3 +535,11 @@ std::string fileop::filename(std::string path) {
auto loc = path.find_last_of('.');
return loc == -1 ? path : path.substr(0, loc);
}
int fileop::fcloseall() {
#if _WIN32
return ::_fcloseall();
#else
return ::closeall();
#endif
}