| manpages.info - online man pages | ![]() |
|||
|
btowc (3) Table of Contents
Namebtowc, wctob - convert between wide and single-byte characters
LibraryStandard C Library (libc, -lc)
Synopsis#include <wchar.h>
wint_t
int
DescriptionThe btowc() function converts a single-byte character into a corresponding wide character. If the character is EOF or not valid in the initial shift state, btowc() returns WEOF.
The wctob() function converts a wide character into a corresponding single-byte character. If the wide character is WEOF or not able to be represented as a single byte in the initial shift state, wctob() returns WEOF.
See Alsombrtowc(3) , multibyte(3) , wcrtomb(3)
StandardsThe btowc() and wctob() functions conform to IEEE Std 1003.1-2001 (``POSIX.1'').
HistoryThe btowc() and wctob() functions first appeared in FreeBSD 5.0.
|