Embedded TCP/IP stack: fnet_fs_feof

FNET

fnet_bool_t fnet_fs_feof ( fnet_fs_file_t  file)

Checks the End-of-File indicator.

Parameters
fileFile descriptor.
Returns
This function returns:
  • FNET_TRUE in the case that the End-of-File is set.
  • FNET_FALSE in the case that the End-of-File is NOT set.
See also
fnet_fs_fread()

This function checks, whether the End-of-File indicator associated with the file descriptor is set.
This indicator is generally set by a previous operation on the file that reached the End-of-File.
Further read operations on the file - once the End-of-File has been reached - will fail until either fnet_fs_rewind() or fnet_fs_fseek() is successfully called to set the position indicator to a new value.


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