uint32_t fs_getpos(const struct fs_file *file)
Retrieves the current read and write position of the specified open file.
Argument | Description |
---|---|
file | Pointer to the file to query |
If a file is opened in append mode, its write pointer is always positioned at the end of the file. Calling this function on such a file only indicates the read position.
#include "fs/fs.h"