Open
Description
I think I've found some inconsistencies in the documentation in lfs.h:
line 545 lfs_file_rewind
// Change the position of the file to the beginning of the file
//
// Equivalent to lfs_file_seek(lfs, file, 0, LFS_SEEK_CUR)
// Returns a negative error code on failure.
int lfs_file_rewind(lfs_t *lfs, lfs_file_t *file);
I think it's meant to say "Equivalent to lfs_file_seek(lfs, file, 0, LFS_SEEK_SET)"
line 527, lfs_file_seek
// Change the position of the file
//
// The change in position is determined by the offset and whence flag.
// Returns the old position of the file, or a negative error code on failure.
lfs_file_seek returns the new position of the file.