*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> wctob (3)              



NAME    [Toc]    [Back]

     btowc, wctob -- convert between wide and single-byte characters

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <wchar.h>

     btowc(int c);

     wctob(wint_t c);

DESCRIPTION    [Toc]    [Back]

     The 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

SEE ALSO    [Toc]    [Back]

     mbrtowc(3), multibyte(3), wcrtomb(3)

STANDARDS    [Toc]    [Back]

     The btowc() and wctob() functions conform to IEEE Std 1003.1-2001

HISTORY    [Toc]    [Back]

     The btowc() and wctob() functions first appeared in FreeBSD 5.0.

FreeBSD 5.2.1			August 3, 2002			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
wctob Tru64 Convert a wide character to a single byte in
btowc Linux convert single byte to wide character
wctob Linux try to represent a wide character as a single byte
btowc Tru64 Convert a single byte from multibyte-character to
towlower Tru64 Convert uppercase and lowercase wide characters
towupper Tru64 Convert uppercase and lowercase wide characters
DtDtsBufferToAttributeValue HP-UX get a single data attribute value for a byte stream
wmemset Linux fill an array of wide-characters with a constant wide character
wcsspn Linux advance in a wide-character string, skipping any of a set of wide characters
htons Tru64 Convert an unsigned short (16-bit) integer from host byte order to network byte order
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service