Query: btowc
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BTOWC(3) BSD Library Functions Manual BTOWC(3)NAMEbtowc, wctob -- convert between wide and single-byte charactersLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wchar.h> wint_t btowc(int c); int wctob(wint_t c); #include <wchar.h> #include <xlocale.h> wint_t btowc_l(int c, locale_t loc); int wctob_l(wint_t c, locale_t loc);DESCRIPTIONThe btowc() function converts a single-byte character into a corresponding wide character. If the character is EOF or not valid in the ini- tial 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 EOF. The _l-suffixed versions take an explicit locale argument, while the non-suffixed versions use the current global or per-thread locale.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.BSDFebruary 13, 2012 BSD
Related Man Pages |
---|
wctob_l(3) - mojave |
btowc_l(3) - mojave |
btowc(3) - debian |
wctob_l(3) - osx |
btowc(3) - opendarwin |
Similar Topics in the Unix Linux Community |
---|
Character Convertion Help Needed |