You need to replace diropen by "opendir", dirclose by "closedir" and dirnext with "readdir".
The new open/close functions use "DIR" structure, not "DIR_ITER", and readdir usage is substantially different from dirnext so you want to learn how to use it first.
Thanks for the tip. So what changed that caused this because I read the notes for the release and nothing screams "This will break uses of diropen...."?
For those having similar issues, to use readdir where you used dirnext here is a small bit of sample code to show how to use it:
CODE#include
#include
....
char fullpath[80];
char path[] = "sd:\";
DIR *dir = NULL;
struct dirent * temp = NULL;
struct stat filestat;
dir = opendir(path);
if (dir != NULL) {
ÂÂtemp = readdir(dir);
ÂÂif(temp != NULL ) {
ÂÂÂÂsnprintf(fullpath, sizeof(fullpath), "%s/%s", path, temp->d_name);
ÂÂÂÂif(stat( fullpath, &filestat) == 0) {
ÂÂÂÂÂÂ//blah
ÂÂÂÂ}
ÂÂ}
}
closedir(dir);