<< Previous | Next >>

fat_Tell

int fat_Tell( FATfile *file, unsigned long *pos );

Description

Puts the value of the position pointer (that is, the number of bytes from the beginning of the file) into pos. Zero indicates the position pointer is at the beginning of the file.

µC/OS-II USERS:

Parameters

file
Pointer to the file structure of the open file

pos
Pointer to the variable where the value of the file position pointer is to be placed.

Return Value

0: success.
-EIO: position is beyond EOF.
-EINVAL: file is invalid.

Library

FAT.LIB

See Also

fat_Seek, fat_Read, fat_Write, fat_xWrite


Dynamic C Functions << Previous | Next >> rabbit.com