BTOWC man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

BTOWC(3)		 BSD Library Functions Manual		      BTOWC(3)

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

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <wchar.h>

     wint_t
     btowc(int c);

     int
     wctob(wint_t c);

DESCRIPTION
     The btowc() function converts a single-byte character into a correspond‐
     ing 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 sin‐
     gle-byte character.  If the wide character is WEOF or not able to be rep‐
     resented as a single byte in the initial shift state, wctob() returns
     WEOF.

SEE ALSO
     mbrtowc(3), multibyte(3), wcrtomb(3)

STANDARDS
     The btowc() and wctob() functions conform to IEEE Std 1003.1-2001
     (“POSIX.1”).

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

BSD				August 3, 2002				   BSD
[top]

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net