mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 05:08:45 +08:00
Update
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user