Embedded TCP/IP stack: fnet_fs_readdir

FNET

fnet_return_t fnet_fs_readdir ( fnet_fs_dir_t  dir,
struct fnet_fs_dirent 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-2018 by Andrey Butok. http://fnet.sourceforge.net