FF_FindNext()
From FullFAT
Populates the provided FF_DIRENT object with the next item in a directory.
Contents |
Prototype
2.x.x Series
FF_ERROR FF_FindNext(FF_IOMAN *pIoman, FF_DIRENT *pDirent);
1.0.x Series
FF_T_SINT32 FF_FindNext(FF_IOMAN *pIoman, FF_DIRENT *pDirent);
Back to API.
Parameters
pIoman
Pointer to an FF_IOMAN object, as returned from the FF_CreateIOMAN() function.
pDirent
A pointer to an FF_DIRENT object to be populated.
Return Value
Returns FF_ERR_NONE on success. Returns FF_ERR_DIR_END_OF_DIR if no more items are available.
Example
#include "fullfat.h" FF_DIRENT mydir; FF_FindFirst(pIoman, &mydir, "\\"); // Open the root dir. FF_FindNext(pIoman, &mydir); // Get second item in root dir.
After the call, and 0 was returned, then mydir will be populated with entries describing the file. To extract this information please see the FF_DIRENT information.
Back to API.
See Also
- FF_FindFirst()
- FF_FindNext()
- FF_FindPrevious()
- FF_RmDir()
- FF_isDirEmpty()
- FF_DIRENT