#83246 - D-loader - Sun May 14, 2006 2:00 pm
Hi
I hope somebody in here, can help me with a lil problem I have:
the problem is.. no matter what I do, it always shows up as files only, or folders only.. have I placed my breaks wrong?[/code]
I hope somebody in here, can help me with a lil problem I have:
Code: |
int filenum = 1; void list() { char fname[128]; char type[128]; enum { NO_MORE = 0, FILE = 1, DIR = 2 }; int entryType = FAT_FindFirstFile(fname); switch(entryType){ case 0: {} break; case 1: { sprintf(type,"File");} break; case 2: { sprintf(type,"Folder");} break; } while (entryType != NO_MORE) { iprintf("%d.%s = %s\n",filenum,fname,type); entryType = FAT_FindNextFile(fname); filenum++; } iprintf("...."); } |
the problem is.. no matter what I do, it always shows up as files only, or folders only.. have I placed my breaks wrong?[/code]