Mail Archives: djgpp/1996/04/12/10:25:26
Please I realy, realy need help with this one as an applicaltion
I wrote for DJGPP 2.6.3 dosent work because of this error, when
I compile it under 2.7.2, and it must now be compiled under this!
The problem is as follows and is related to findfirst and findnext functions.
Example code from the GNU DOCS,
#include <stdio.h>
#include <dir.h>
main()
{
struct ffblk f;
int done = findfirst("*.tga",&f,FA_ARCH|FA_RDONLY);
while(!done)
{
printf("%s\n",f.ff_name);
done = findnext(&f);
}
}
The expected and correct output should be,
ANGTEST.TGA
DOME.TGA
PIRAMID.TGA
RENO10.TGA
RES1.TGA
RES2.TGA
RES4.TGA
REZ3.TGA
The actual output is,
GTEST.TGA
ME.TGA
RAMID.TGA
NO10.TGA
S1.TGA
S2.TGA
S4.TGA
Z3.TGA
As you can see the first two chars of each line are missing,
can anyone help please.
Thanks in advance, Nick Burton...............................
- Raw text -