Date: Tue, 14 Jan 1997 00:25:28 -0600 (CST) From: Andrew Deren To: djgpp Subject: help: Findfirst Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.