J'trouve beaucoup plus fun de refaire la fonction soi-même
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
BOOL DirPath(char *szPath)
{
WIN32_FIND_DATA wfd;
HANDLE hFile;
hFile = FindFirstFile(szPath, &wfd);
if(hFile == INVALID_HANDLE_VALUE)
{
printf("Erreur...");
return FALSE;
}
while(FindNextFile(hFile, &wfd))
{
if(wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
printf("%s\n", wfd.cFileName);
}
FindClose(hFile);
return TRUE;
}
int main()
{
DirPath("C:\\*.*");
system("PAUSE");
return 0;
}
if(!Meilleur("Joky")) return ERREUR;<