Mail Archives: djgpp/1997/01/14/01:43:24
I have encoutered a weird thing happening in my program. When I use
findfirst/findnext functions I get first two letters of the file name
missing. I even tried using an example code and I still get the same
results, here is the example
main()
{
struct ff_blk f;
int done = findfirst("*.*", FA_ARCH, f);
while (!done) {
printf("%s\n", f.ff_name);
done = findnext(&f);
}
}
and if I have files: test.cpp test.h in my directory running the program
gives me:
st.h
st.cpp
Does any one know what could be the problem?
BTW: I even tried _dos_findfirst() and _dos_findnext() functions with the
same results.
Thanks.
- Raw text -