Add ftell

This commit is contained in:
2021-12-31 10:08:00 +08:00
parent ac4fee1977
commit 1f6f0acf05
4 changed files with 24 additions and 0 deletions

View File

@@ -148,5 +148,11 @@ namespace fileop {
* @return true if file's directory is exists now.
*/
bool mkdir_for_file(std::string path, int mode);
/**
* @brief Gets the current position of a file pointer.
* @param f Target FILE structure.
* @return The current position
*/
int64_t ftell(FILE* f);
}
#endif