File: mbsinit.3

package info (click to toggle)
manpages-ja 0.4.0.0.20020315-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,808 kB
  • ctags: 4
  • sloc: sh: 9,595; perl: 157; makefile: 62
file content (70 lines) | stat: -rw-r--r-- 2,589 bytes parent folder | download | duplicates (2)
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:56:13 JST 2000
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\"
.\"WORD:	initial shift state		եȾ
.\"
.TH MBSINIT 3  2000-11-20 "GNU" "Linux Programmer's Manual"
.SH ̾
mbsinit \- եȾ֤ɤ򸡺
.SH 
.nf
.B #include <wchar.h>
.sp
.BI "int mbsinit(const mbstate_t *" ps );
.fi
.SH 
ʸޥХɽȥ磻ʸɽδ֤Ѵˤ
\fBmbstate_t\fP Ѵ֤Ѥ롣ʸѴͭ¾֥ޥ
Ѥ롣餫ʸѴλˡĤʸ
˾֤¸Ƥɬפ뤫⤷ʤΤ褦Ѵ֤
ISO-2022  UTF-7 Τ褦򰷤ΤɬפȤ롣
.PP
֤ȤʸѴ򳫻Ϥξ֤Ǥ롣֤ˤब
¸ߤĤ \fBmbsrtowcs\fP Τ褦ʥޥХȤ磻ʸ
ѴؿǻѤ롣⤦Ĥ \fBwcsrtombs\fP Τ褦
磻ʸޥХȤѴؿǻѤ롣ξȤ
\fBmbstate_t\fP ˳Ǽ졢֤ȤƱɽġ
.PP
8ӥåˤƤƤξ֤Ͻ֤Ǥ롣
UTF-8, EUC-*, BIG5, SJIS Τ褦¿Хˤƥ磻ʸ
¿ХʸؤѴؿ֤ˤϤʤʤ
 \fBmbrtowc\fP Τ褦¿Хʸ磻ʸؤѴؿǤ
ʸβ֤Ȥʤ礬롣
.PP
֤ mbstate_t ˡΰĤϡ򥼥ꤹ뤳ȤǤ:
.nf
  mbstate_t state;
  memset(&state,0,sizeof(mbstate_t));
.fi
Linux ˤƤϰʲˡǤƱͤǤ뤬ѥ顼ηٹ
뤫⤷ʤ
.nf
  mbstate_t state = { 0 };
.fi
.PP
\fBmbsinit\fP  \fI*ps\fP ֤˰פ뤫ɤ򸡺롣
.SH ֤
\fBmbsinit\fP  \fI*ps\fP ֤ξ NULL ݥ󥿡ξˤ
ʳ֤ʳξˤϥ֤
.SH 
ISO/ANSI C, UNIX98
.SH Ϣ
.BR mbsrtowcs (3),
.BR wcsrtombs (3)
.SH 
\fBmbsinit\fP ưϸߤΥ LC_CTYPE ƥ˰¸Ƥ롣