Embedded TCP/IP stack: fnet_fs_ftell

FNET

fnet_int32_t fnet_fs_ftell ( fnet_fs_file_t  file)

Gets the current position in a file.

Parameters
fileFile descriptor.
Returns
This function returns:
  • The current value of the position indicator if no error occurs.
  • FNET_ERR if an error occurs.
See also
fnet_fs_fseek()

This function returns the current value of the position indicator of the file. The returned value corresponds to the number of bytes from the beginning of the file.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net