int DirNext(char *value, int len);
Gets the next filename in a directory search operation.
Return Value
Returns a non-zero value if a file was found, zero otherwise.
Parameters
value Pointer to a buffer to receive the filename found.
len The length of the buffer pointed to.
Remarks
DirNext() will return the name of the next file in a search operation.
Availability
Available in DragonFireSDK 1.4 and later.
Example
The example below enumerates the files in the Documents directory and prints them to the console.
#include "DragonFireSDK.h"
char FileName[100];
void AppMain() { DirBegin("Documents"); while (DirNext(FileName, 100)) printf("Found file: %s\n", FileName); DirEnd(); }
void AppExit() {
}
void OnTimer() {
} |