1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" References consulted:
.\" GNU glibc-2 source code and manual
.\" Dinkumware C library reference http://www.dinkumware.com/
.\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
.\" ISO/IEC 9899:1999
.\"
.\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
.\" all rights reserved.
.\" Translated Tue Jan 11 00:55:39 JST 2000
.\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\"
.TH WCTOMB 3 1999-07-25 "GNU" "Linux Programmer's Manual"
.SH ̾
wctomb \- 磻ʸޥХѴ롣
.SH
.nf
.B #include <stdlib.h>
.sp
.BI "int wctomb(char *" s ", wchar_t " wc );
.fi
.SH
.PP
\fIs\fP NULL ǤʤС
.BR wctomb ()
ؿϥ磻ʸ \fIwc\fP
ޥХɽѴ \fIs\fP λؤʸ˳Ǽ롣
Ʊ wctomb ؿΤߤѤŪ̾ΤʤեȾ֤롣
δؿϥޥХɽĹʤ \fIs\fP ˽ޤ줿
Хȿ֤ץޡ \fIs\fP ˾ʤȤ \fBMB_CUR_MAX\fP
ХȤζ뤳ȤݾڤʤФʤʤ
.PP
\fIs\fP NULL ʤС
.BR wctomb ()
ؿϼʬΤߤѤ륷եȾ֤
֤ᤷơʸ椬եȾ֤˰¸ƤʤХʳ
եȾ֤˰¸ʤˤϥ֤
.SH ֤
\fIs\fP NULL Ǥʤ
.BR wctomb ()
ؿϥХ \fIs\fP
ޤ줿Хȿ֤\fIwc\fP (ߤΥˤ)
ޥХɽǤʤˤ \-1 ֤
.PP
\fIs\fP NULL ξ
.BR wctomb ()
ؿʸ椬եȾ֤
¸ƤˤϥʳեȾ֤˰¸ʤϥ֤
.SH
C99.
.SH
.BR wctomb ()
ؿưϸߤΥ
.B LC_CTYPE
ƥ˰¸Ƥ롣
.PP
δؿϥޥåɤǤϰǤϤʤ
.BR wcrtomb (3)
ؿ
ƱǽΤɤե롣
.SH Ϣ
.BR MB_CUR_MAX (3),
.BR wcrtomb (3),
.BR wcstombs (3)
|