Mail Archives: djgpp/1996/10/17/10:51:21
I use DJGPP 2.00 and gcc 2.7.2. I think sscanf function of DJGPP's gcc
act wrongly.
I compiled the next short C program with gcc 2.7.2 on DGJPP.
#include <stdio.h>
main(){
int ret1, ret2;
float xres, yres;
ret1 = sscanf( "100", "%fx%f", &xres, &yres);
ret2 = sscanf( "100x", "%fx%f", &xres, &yres);
printf("%d, %d\n", ret1, ret2);
}
And a.exe of this program shows
-1, 1
But it must be
1, 1
I checked this program with gcc 2.7.2 on other OSs,
and all executables shows
1, 1
How can I get right sscanf function on DJGPP?
OS: Windows95 (Japanease version)
- Raw text -