Newsgroups: comp.os.msdos.djgpp From: hhirasaw AT pi DOT titech DOT ac DOT jp (Hideaki Hirasawa 03/97) Subject: sscanf of djgpp Message-ID: <1996Oct17.085356.20022@pi.titech.ac.jp> Sender: news AT pi DOT titech DOT ac DOT jp (News Administrator) Organization: Precision and Intelligence Lab., Tokyo Institute of Tech., Japan Date: Thu, 17 Oct 1996 08:53:56 GMT Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 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)