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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
.\" 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
.\"
.\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
.\" Translated Fri Oct 22 01:12:12 JST 1999
.\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
.\"
.TH WCSNRTOMBS 3 2007-07-26 "GNU" "Linux Programmer's Manual"
.SH ̾
wcsnrtombs \- 磻ʸʸޥХʸѴ
.SH
.nf
.B #define _GNU_SOURCE
.B #include <wchar.h>
.sp
.BI "size_t wcsnrtombs(char *" dest ", const wchar_t **" src ", size_t " nwc ,
.BI " size_t " len ", mbstate_t *" ps );
.fi
.SH
.BR wcsnrtombs ()
ؿϡ
.BR wcsrtombs ()
ؿ˻Ƥ롣
Ѵ磻ʸο(\fI*src\fP ) \fInwc\fP ʸ
Ƥۤʤ롣
.PP
\fIdest\fP NULL ݥǤʤС
.BR wcsnrtombs ()
ؿ
磻ʸʸκ \fInwc\fP ĤޤǤΥ磻ʸ \fIdest\fP
ϤޤޥХʸѴ롣\fIdest\fP ˤϺ \fIlen\fP Х
Ȥޤǽޤ롣եȾ \fI*ps\fP Ϲ롣ºݤθ̤Ȥ
ƤϡѴϰʲưƱˤʤ:
.IR "wcrtomb(dest, *src, ps)"
Ƥӡ֤ä
\fIdest\fP Хȿ䤷\fI*src\fP 1 䤹
ơwcrtomb ֤¤ꤳ֤
Ѵߤޤͳ 3 Ĺͤ:
.PP
1. (ߤΥ˴Ť)ޥХɽǤʤ磻ʸ
вä硣ξϡ\fI*src\fP ʥ磻ʸؤ֤ˤʤꡢ
.I (size_t)\ \-1
֤졢\fIerrno\fP \fBEILSEQ\fP ꤵ롣
.PP
2. L\(aq\\0\(aq ˽вʤ \fInwc\fP ĤΥ磻ʸѴ礫Ĺ
¤ˤäѴߤ줿硣ξˤϡ\fI*src\fP ϼ
Ѵ٤磻ʸؤ֤ˤʤꡢ\fIdest\fP ˽ޤ줿
Хȿ֤롣
.PP
3. 磻ʸü L\(aq\\0\(aq (ˤ \fI*ps\fP ֤᤹
Ѥ)ޤѴ줿硣ξˤ \fI*src\fP
NULL ꤵ졢\fIdest\fP ˽ޤ줿Хȿ֤
(ü \(aq\\0\(aq Ͽʤ)
.PP
\fIdest\fP NULL ʤ \fIlen\fP ̵뤵ҤΤ褦ѴԤ
뤬Ѵ줿Хȥǡϥ˽ФʤȡĹ
¤ʤۤʤ롣
.PP
嵭Τξ⡢\fIps\fP NULL ݥʤСwcsnrtombs ؿ
ΤäƤŪƿ̾ξ֤եȾ֤Ѥ롣
.PP
ץޤϾʤȤ \fIlen\fP ХȤΰ \fIdest\fP ˳ݤ
Фʤʤ
.SH ֤
.BR wcsnrtombs ()
ؿϡѴ줿ޥХΥХȿ
ˤϽü null ХȤϴޤޤʤ
ѴǤʤ磻ʸ˽вäˤ
.I (size_t)\ \-1
֤졢 \fIerrno\fP \fBEILSEQ\fP ꤵ롣
.SH
δؿ GNU ĥǤ롣
.SH
.BR wcsnrtombs ()
ưϸߤΥ
.B LC_CTYPE
ƥ˰¸롣
.PP
\fIps\fP NULL ϤݤưϥޥåɥդǤʤ
.SH Ϣ
.BR iconv (3),
.BR wcsrtombs (3)
|