Xref: news2.mv.net comp.os.msdos.djgpp:8618 From: Peter Palotas Newsgroups: comp.os.msdos.djgpp Subject: A bug in DJGPP?? Date: Thu, 05 Sep 1996 21:48:42 -0700 Organization: DeCaf Lines: 23 Message-ID: <322FAD29.3DE9@freenet.hut.fi> Reply-To: rtoodtoo AT freenet DOT hut DOT fi NNTP-Posting-Host: ppp15.gu.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Is there a bug in the findfirst() and findnext() functions in DJGPP??? Or maybe in the ffblk struct. When I make a program that checks for all the files using findfirst() and findnext() passing the addres of an ffblk object then printing the filename, the filename is missing the first two characters. I do like this: void main(void) { struct ffblk fileinfo; findfirst("*.*", &fileinfo, FA_ARCH); cprintf("%s\n\r", fileinfo.ff_name); } if I use this statement to print the filename instead everything seems to work fine, but this isn't how you should have to do; cprintf("%s\n\r", fileinfo.ff_name - 2); Is this a bug in DJGPP's libraries or am I doing something wrong? Please reply via e-mail to: rtoodtoo AT freenet DOT hut DOT fi //Blizzar