int DirEnd();


Ends a directory search for files.


Return Value


Returns one if the search operation was finalized successfully.




DirEnd() frees memory used by the file search operation. ALWAYS call DirEnd() after calling DirBegin()!




Available in DragonFireSDK 1.4 and later.




The example below enumerates the files in the Documents directory and prints them to the console.


#include "DragonFireSDK.h"


char FileName[100];


void AppMain()



  while (DirNext(FileName, 100))

       printf("Found file: %s\n", FileName);




void AppExit()





void OnTimer()