Mail Archives: djgpp/1997/04/23/09:01:29
Ok, copy this program. Call it imOK.c, compile. it works correctly.
Rename it imKO.cc, compile. Two heading chars are missing in filenames.
Please explain. It's late in the night, am I missing something ?
#include <stdio.h> // for printf
#include <dir.h>
int main()
{
struct ffblk f;
int done;
done = findfirst("*.*", &f, FA_ARCH|FA_RDONLY);
while (!done)
{
printf( "\n%s", f.ff_name);
done = findnext(&f);
}
}
TIA
Stefano
PS: this is taken from help, slightly reduced.
PPS:
Why is DJGPP still present in all FTP sites ?
Does it have anything superior than v2 (other than compile speed) or
it's there just for supporting 'old' users ?
- Raw text -