Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!titech.ac.jp!dis.titech.ac.jp!pi.titech!hhirasaw
From: hhirasaw@pi.titech.ac.jp (Hideaki Hirasawa 03/97)
Subject: Re: sscanf of djgpp
Message-ID: <1996Oct22.044106.29903@pi.titech.ac.jp>
Sender: news@pi.titech.ac.jp (News Administrator)
Organization: Precision and Intelligence Lab., Tokyo Institute of Tech., Japan
X-Newsreader: mnews [version 1.18PL3] 1994-08/01(Mon)
References: <1996Oct16.094338.6000@pi.titech.ac.jp>
Date: Tue, 22 Oct 1996 04:41:06 GMT
Lines: 31
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:3022
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3022&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$BEl9)Bg$NJ?Bt$H?=$7$^$9!#0JA0!";d$,Ej9F$7$?5-;v$K$D$$$F$G$9$,!"(B
comp.os.msdos.djgpp $B$GF1MM$N;v$rJ9$$$F$_$^$7$?!#(B
$B7k6I!"(Bdgjpp $B$N(B gcc $B$N%P%0$N$h$&$G!"$b$&$9$0=P$k(B djgpp 2.01
$B$G$OD>$k$=$&$G$9!#(B

>> $BEl9)Bg$NJ?Bt$H?=$7$^$9!#(B
>> 
>> DJGPP $B>e$N(B gcc 2.7.2 $B$N(B sscanf $B4X?t$NF0:n$,$*$+$7$$$h$&$J$N$G$9$,!$(B
>> $B2?$+BP=hK!$O$"$k$G$7$g$&$+!#(B
>> 
>> $B<!$N$h$&$J%W%m%0%i%`$r(B DJGPP2.0 $B$H(B BOW (BSD on Windows) $B$N(B gcc 2.7.2
>> $B$G%3%s%Q%$%k$7$F$_$^$7$?!#(B
>> 
>> #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);
>> }
>> 
>> DJGPP $B$N<B9T7A<0(B a.exe $B$N7k2L$O(B
>> -1, 1
>> 
>> BOW $B$N<B9T7A<0(B a.out $B$N7k2L$O(B
>> 1, 1
>> 
>> sscanf $B$N;EMM$H$7$F$O!$(BBOW $B$NJ}$,@5$7$$$h$&$G$9!#$3$l$,860x$G(B
>> $B@5>o$KF0$+$J$$%W%m%0%i%`$,$"$j:$$C$F$$$^$9!#(B

