btowc.3 (b18146b4c26bba1cc3de0cfa3bf77b3c6be37721) btowc.3 (e9fb70115fcb6811107e65763e62cac4f4304fcd)
1.\" Copyright (c) 2002 Tim J. Robbins
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

55function converts a wide character into a corresponding single-byte character.
56If the wide character is
57.Dv WEOF
58or not able to be represented as a single byte in the initial shift state,
59.Fn wctob
60returns
61.Dv WEOF .
62.Sh SEE ALSO
1.\" Copyright (c) 2002 Tim J. Robbins
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

55function converts a wide character into a corresponding single-byte character.
56If the wide character is
57.Dv WEOF
58or not able to be represented as a single byte in the initial shift state,
59.Fn wctob
60returns
61.Dv WEOF .
62.Sh SEE ALSO
63.Xr mbrtowc 3 ,
64.Xr multibyte 3 ,
65.Xr wcrtomb 3
63.Xr multibyte 3
66.Sh STANDARDS
67The
68.Fn btowc
69and
70.Fn wctob
71functions conform to
72.St -p1003.1-2001 .
73.Sh HISTORY
74The
75.Fn btowc
76and
77.Fn wctob
78functions first appeared in
79.Fx 5.0 .
64.Sh STANDARDS
65The
66.Fn btowc
67and
68.Fn wctob
69functions conform to
70.St -p1003.1-2001 .
71.Sh HISTORY
72The
73.Fn btowc
74and
75.Fn wctob
76functions first appeared in
77.Fx 5.0 .