mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-07-08 01:30:39 +08:00
Add ftell
This commit is contained in:
6
fileop.h
6
fileop.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user