Newsgroups: fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!sinfony-news01!tokyonet.ad.jp!tokyonet.ad.jp!astecgw!news
From: Sawayanagi Yosirou <yanagi@astec.co.jp>
Subject: Re: sprintf
X-Nntp-Posting-Host: chicago.astec.co.jp
Content-Type: text/plain; charset=ISO-2022-JP
Message-ID: <rkendm6cuk.fsf@astec.co.jp>
Lines: 30
Sender: yanagi@chicago
Organization: ASTEC, Inc., Japan
X-Newsreader: Gnus v5.3/Emacs 19.34
References: <5ffogf$fdu@inet-serv.in.brother.co.jp>
	<5fg7ir$1fh@csdnews.sm.sony.co.jp>
	<tsutomu-0403971605560001@mac066074.kke.co.jp>
Mime-Version: 1.0 (generated by tm-edit 7.105)
Date: Tue, 11 Mar 1997 08:40:19 GMT
Xref: galaxy.trc.rwcp.or.jp fj.lang.c:3757
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=3757&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.



  $B_7Lx(B@$B%"%9%F%C%/$G$9!#(B


tsutomu@kke.co.jp (Tsutomu Saito) writes:

> $B#4!K@EE*JQ?t$N%]%$%s%?$rJV$9!#(B
> $B!!(B    $B!!(Bstatic buf[BUF_SIZE];
>         ...
>         return buf;


  $B!V@EE*!W$H$$$&J,N`$K$D$$$F!">e5-$NJQ<o$K$J$k$H;W$$$^$9$1$l$I(B

static char *buf = NULL;
static int buf_size = 0;

$B$0$i$$$NJQ?t$rMQ0U$7$F$*$$$F!"(Bbuf = (char *)malloc() $B$7!"$=$l$GB-$j$J(B
$B$$%G!<%?$rJV$9$3$H$K$J$C$?$i(B realloc() $B$7$F$$$-!"%W%m%;%9$N:G=i$+$i:G(B
$B8e$^$G!"C10l$NF0E*NN0h$r%m!<%+%k$K0.$jB3$1$k$H$$$&J}K!$,$"$k$H;W$$$^$9(B
($B$3$s$J$s$G2r$k$s$+$$$J(B)$B!#(B
  $B$b$A$m$s$3$N>l9g$G$b8F$S=P$7$,F~$l;R$K$J$l$P%"%&%H$J$s$G$9$1$l$I!"(B4)
$B$h$j$O9%$-$J<jK!$G$9!#(B


$B_7(B $BLx(B  $B4n(B $BO:(B

---------------------------------------------------------------------------
$B3t<02q<R%"%9%F%C%/(B/$B")(B162 $BEl5~ET?7=I6hFnD.(B6 BR$B;T%vC+(B/PHONE:03-5261-5971($BBe(B)
