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: sscanf of djgpp
Message-ID: <1996Oct16.094338.6000@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)
Date: Wed, 16 Oct 1996 09:43:38 GMT
Lines: 30
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:2975
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=2975&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!#(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

DJGPP2.0 $B$G@5>o$JF0:n$r$9$k(B sscanf $B$rF@$k$K$O$I$&$9$l$P$$$$$N$G(B
$B$7$g$&$+!#$I$J$?$+$465<x2<$5$$!#(B

 
