From owner-FreeBSD-tech-jp@jp.freebsd.org  Tue Oct 27 20:35:31 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id UAA19598;
	Tue, 27 Oct 1998 20:35:31 +0900 (JST)
	(envelope-from owner-FreeBSD-tech-jp@jp.FreeBSD.org)
Received: from TYO203.gate.nec.co.jp (TYO203.gate.nec.co.jp [202.32.8.211])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id UAA19593
	for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 27 Oct 1998 20:35:28 +0900 (JST)
	(envelope-from shiozaki@ased.mt.nec.co.jp)
Received: from mailsv.nec.co.jp (mailsv-le1 [192.168.1.90])
	by TYO203.gate.nec.co.jp (8.9.1a/3.7W98092815) with ESMTP id UAA12000
	for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 27 Oct 1998 20:35:23 +0900 (JST)
Received: from asede1.ased.mt.nec.co.jp (asede1.ased.mt.nec.co.jp [133.201.62.3]) by mailsv.nec.co.jp (8.9.1a/3.7W-MAILSV-NEC) with ESMTP
	id UAA17099 for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 27 Oct 1998 20:35:23 +0900 (JST)
Received: from mtasedms.ased.mt.nec.co.jp (mtasedms [133.201.62.1]) by asede1.ased.mt.nec.co.jp (8.8.5+2.7Wbeta5/3.5Wbeta) with ESMTP id UAA04377 for <FreeBSD-tech-jp@jp.freebsd.org>; Tue, 27 Oct 1998 20:38:33 +0900 (JST)
Received: from localhost ([133.201.213.33]) by mtasedms.ased.mt.nec.co.jp
          (Netscape Messaging Server 3.5)  with ESMTP id 310
          for <FreeBSD-tech-jp@jp.freebsd.org>;
          Tue, 27 Oct 1998 20:36:36 +0900
To: FreeBSD-tech-jp@jp.freebsd.org
From: Takuya SHIOZAKI <shiozaki@ased.mt.nec.co.jp>
In-Reply-To: Your message of "Tue, 27 Oct 1998 20:14:29 +0900"
	<673.909486869@turmeric.itojun.org>
References: <673.909486869@turmeric.itojun.org>
X-Mailer: Mew version 1.93 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA)
My-Status: haiboku-in="Aoi MATSUBARA"; bukatsudou="Marsh Mallow Club"
For-Your-Information: X-TrueType Server Ver1.0 is available now!!
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19981027203702L.shiozaki@ased.mt.nec.co.jp>
Date: Tue, 27 Oct 1998 20:37:02 +0900 (JST)
X-Dispatcher: imput version 980905(IM100)
Lines: 53
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: FreeBSD-tech-jp 1857
Subject: [FreeBSD-tech-jp 1857] Re: how to impliment 'mbstowcs()' and 'wcstombs()'
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org
X-Originator: shiozaki@ased.mt.nec.co.jp


$B1v:j!sBND4$O0-$$$,5$;}$A$O%N$C$F$k!w2q<R$G$9!#(B


From: Jun-ichiro itojun Itoh <itojun@iijlab.net>
Subject: [FreeBSD-tech-jp 1855] Re: how to impliment 'mbstowcs()' and 'wcstombs()'
Date: Tue, 27 Oct 1998 20:14:29 +0900
Message-ID: <673.909486869@turmeric.itojun.org>

> 	$B$G!"$I$3$GDj5A$5$l$F$s$N$+K:$l$^$7$?$,!"(Bmbs*r*towcs()$B$H$+$N4X?t$,(B
> 	$BDj5A$5$l$F$$$F!"(B
> 		size_t mbsrtowcs(wchar_t *, const char *, size_t, mbstate_t *)
> 	$B$H$+$$$&(Bprototype def$B$K$J$C$F$$$^$9!#:G8e$N0z?t$,(BNULL$B$@$H!"4X?tFbIt$N(B
> 	$B>uBV$r;H$&$N$G(Bmbstowcs(r$B$J$7(B)$B$HF1$8F0:n$G$9!#(B

mbstate_t $B$r$I$&$d$C$F<BAu$9$k$+!"$H$$$&$N$bHs>o$KG:$_$I$3$m!#(B

itojun $B$5$s$N(B ISO2022 rune $B$O(B 32bit $BHF@0?t$N$?$0$$$@$C$?$H;W$$$^$9$,!"(B
glibc-2 $B$O(B struct $B$@$C$?$j$7$^$9$M!#(B

$BLdBj$O!"5,3J$,!"(B
    An object type other than an array type that can hold the conversion
    state information necessary to convert between sequences of (possibly
    multibyte) characters and wide-characters.
$B$H$J$C$F$$$k$N$G!"JL$KHF@0?t7?$@$m$&$,9=B$BN$@$m$&$,NI$$$N$@$,!"(B
$BLdBj$O=i4|>uBV$XLa$9J}K!$,L@3N$K5,Dj$5$l$F$J$/$F!"(BISO C 1995 $B$r$_$k$H!"(B
$B!V(B0 $B$G=i4|2=!W$_$?$$$J$3$H$,=q$$$F$"$k$s$G$9$1$I!"$8$c$"(B
$B9=B$BN$N>l9g$O$I$J$$$;$$$C$A$e!<$s$8$c>uBV$K4Y$k$7!"$+$H$$$C$F!"(B
$B@0?t$K$9$k$H3HD%@-$KFq$,$"$k$N$G$9$h$M!D(B

$B$o$?$7$H$7$F$O!"(B

  typedef void *mbstate_t;

  create_mbstate(mbstate_t *ps);
  destroy_mbstate(mbstate_t *ps);

$B$_$?$$$J$N$rMQ0U$7$F!"FbIt9=B$$r(B opaque $B$J@$3&$KIu$89~$a$F$7$^$&$N$,(B
$B9%$_$@$7!"$=$&$$$&5,3J$K$7$F$/$l$?$i$&$l$7$+$C$?$s$G$9$1$I!"(B
$B$$$+$s$;$sI8=`(B C lib $B$HN.57$,0c$&$N$G!"(B
$B$3$&$$$&$N$,5,3J$K$J$k$N$O:G=i$C$+$iE~DlK>$a$J$$$3$H$G$7$g$&$M$'!#(B

$B$^$"!"IaDL$N(B transparent $B$J9=B$BN$+6&MQBN$N;HMQ$,L5Fq$J$s$G$7$g$&$M!#(B


$B$G$O!#(B
---
  $B1v:j(B $BBsLi(B - shiozaki@ased.mt.nec.co.jp
              Shiozaki@p20-23330.star.nec.co.jp
              tshiozak@isoternet.org

  $BF|K\EE5$(B($B3t(B)$B%7%9%F%`;v6H%0%k!<%W(B $B%7%9%F%`%=%U%H%&%'%";v6HK\It(B
  $B%U%m%s%H%*%U%#%9%7%9%F%`;v6HIt(B $BBhFs5;=QIt(B
