wctomb.3 (bc0b3a180015087b0d8d3a1e4e4f881271d209f0) wctomb.3 (8b8109275c1a583e96171df08e3136151c02279e)
1.\" Copyright (c) 2002, 2003 Tim J. Robbins. All rights reserved.
1.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved.
2.\" Copyright (c) 1993
3.\" The Regents of the University of California. All rights reserved.
4.\"
5.\" This code is derived from software contributed to Berkeley by
6.\" Donn Seeley of BSDI.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions

--- 22 unchanged lines hidden (view full) ---

32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93
37.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp
38.\" $FreeBSD$
39.\"
2.\" Copyright (c) 1993
3.\" The Regents of the University of California. All rights reserved.
4.\"
5.\" This code is derived from software contributed to Berkeley by
6.\" Donn Seeley of BSDI.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions

--- 22 unchanged lines hidden (view full) ---

32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93
37.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp
38.\" $FreeBSD$
39.\"
40.Dd November 19, 2003
40.Dd April 8, 2004
41.Dt WCTOMB 3
42.Os
43.Sh NAME
44.Nm wctomb
45.Nd convert a wide-character code to a character
46.Sh LIBRARY
47.Lb libc
48.Sh SYNOPSIS

--- 33 unchanged lines hidden (view full) ---

82.Fa mbchar
83is valid,
84.Fn wctomb
85returns
86the number of bytes processed in
87.Fa mbchar ,
88or \-1 if no multibyte character
89could be recognized or converted.
41.Dt WCTOMB 3
42.Os
43.Sh NAME
44.Nm wctomb
45.Nd convert a wide-character code to a character
46.Sh LIBRARY
47.Lb libc
48.Sh SYNOPSIS

--- 33 unchanged lines hidden (view full) ---

82.Fa mbchar
83is valid,
84.Fn wctomb
85returns
86the number of bytes processed in
87.Fa mbchar ,
88or \-1 if no multibyte character
89could be recognized or converted.
90In this case,
91.Fn wctomb Ns No 's
92internal conversion state is undefined.
90.Sh ERRORS
91The
92.Fn wctomb
93function will fail if:
94.Bl -tag -width Er
93.Sh ERRORS
94The
95.Fn wctomb
96function will fail if:
97.Bl -tag -width Er
95.\".It Bq Er EINVAL
96.\"Invalid argument.
97.It Bq Er EILSEQ
98An invalid multibyte sequence was detected.
98.It Bq Er EILSEQ
99An invalid multibyte sequence was detected.
100.It Bq Er EINVAL
101The internal conversion state is invalid.
99.El
100.Sh SEE ALSO
101.Xr mbtowc 3 ,
102.Xr wcrtomb 3 ,
103.Xr wcstombs 3 ,
104.Xr wctob 3
105.Sh STANDARDS
106The
107.Fn wctomb
108function conforms to
102.El
103.Sh SEE ALSO
104.Xr mbtowc 3 ,
105.Xr wcrtomb 3 ,
106.Xr wcstombs 3 ,
107.Xr wctob 3
108.Sh STANDARDS
109The
110.Fn wctomb
111function conforms to
109.St -isoC .
110.Sh BUGS
111The current implementation does not support shift states.
112.St -isoC-99 .