Embedded TCP/IP stack  4.7.0

◆ fnet_fs_readdir()

fnet_return_t fnet_fs_readdir ( fnet_fs_dir_t  dir,
fnet_fs_dirent_t dirent 
)

Reads a directory entry.

Parameters
dirDirectory descriptor.
direntPointer to the entry information structure.
Returns
This function returns:
  • FNET_OK if no error occurs.
  • FNET_ERR if an error occurs or end of directory stream is reached.
See also
fnet_fs_opendir(), fnet_fs_rewinddir(), fnet_fs_finfo()

This function fills the dirent structure representing the directory entry at the current position and increments the position to the next entry.
When the end of the directory is encountered, the FNET_ERR is returned.
The function reads directory entries in sequence. All items in the directory can be read by calling the fnet_fs_readdir() function repeatedly.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net