delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/14/01:43:24

Date: Tue, 14 Jan 1997 00:25:28 -0600 (CST)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: djgpp <djgpp AT delorie DOT com>
Subject: help: Findfirst
Message-ID: <Pine.SUN.3.95.970114001824.24767B-100000@bert.eecs.uic.edu>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019