Mail Archives: djgpp/1996/08/29/20:48:36
Xref: | news2.mv.net comp.os.msdos.djgpp:8045
|
From: | "Gilles Bouthenot" <gilles_bouthenot AT mail DOT dotcom DOT fr>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | struct ffblk bug in C++ ?
|
Date: | 29 Aug 1996 22:38:23 GMT
|
Organization: | C.I.A.
|
Lines: | 21
|
Message-ID: | <01bb95f3$71842da0$529033c2@megar.fc-net.fr>
|
NNTP-Posting-Host: | ppp82.fc-net.fr
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I wrote the next program:
#include <dir.h>
#include <stdio.h>
main()
{
int s;
struct ffblk dta;
s=findfirst("*.*",&dta,0x10);
while(s!=0)
{ printf("%s\n",dta.ff_name);
s=findnext(&dta);
}
}
It works perfectly when compiled in C (TEST.C)
But when I rename it to TEST.CPP, the program doesn't work: the first two
letters of ALL entries are missing !!
I think that it is a bug in the declaration of the ffblk struct. Did you
ever found this problem ?
Thanks. DJGPP is simply great !
- Raw text -