|
Dernière réponse | |
---|---|
Sujet : Affichage de fichier et dossiers en C | |
Fork | void affiche_dossiers(char drive)
{ struct ffblk fblock; /* Create file info block */ char path="X:\\*.*"; path[0]=drive; if( findfirst(path,&fblock,NORMAL) != 0 ) { puts("Oops! Some kind of error!" ); return 1; } printf("%s\t%d\n",fblock.ff_name,fblock.ff_fsize); while( findnext(&fblock) == 0) printf("%s\t%d\n",fblock.ff_name,fblock.ff_fsize); } |
Vue Rapide de la discussion |
---|