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

  man pages->Linux man pages -> btowc (3)              
Title
Content
Arch
Section
 

BTOWC(3)

Contents


NAME    [Toc]    [Back]

       btowc - convert single byte to wide character

SYNOPSIS    [Toc]    [Back]

       #include <wchar.h>

       wint_t btowc (int c);

DESCRIPTION    [Toc]    [Back]

       The  btowc  function converts c, interpreted as a multibyte sequence of
       length 1, starting in the initial shift state, to a wide character  and
       returns	it. If c is EOF or not a valid multibyte sequence of length 1,
       the btowc function returns WEOF.

RETURN VALUE    [Toc]    [Back]

       The btowc function returns the wide character converted from the single
       byte  c.  If c is EOF or not a valid multibyte sequence of length 1, it
       returns WEOF.

CONFORMING TO    [Toc]    [Back]

       ISO/ANSI C, UNIX98

SEE ALSO    [Toc]    [Back]

      
      
       mbtowc(3)

NOTES    [Toc]    [Back]

       The behaviour of btowc depends on the LC_CTYPE category of the  current
       locale.

       This  function  should  never  be  used. It does not work for encodings
       which have state, and unnecessarily  treats  single  bytes  differently
       from multibyte sequences. Use the function mbtowc instead.



GNU				  1999-07-25			      BTOWC(3)
[ Back ]
 Similar pages
Name OS Title
wctob Tru64 Convert a wide character to a single byte in
btowc FreeBSD convert between wide and single-byte characters
wctob FreeBSD convert between wide and single-byte characters
wctob Linux try to represent a wide character as a single byte
btowc Tru64 Convert a single byte from multibyte-character to
fwide Tru64 Set stream orientation to byte or wide-character
mbrtowc FreeBSD convert a character to a wide-character code (restartable)
wcrtomb FreeBSD convert a wide-character code to a character (restartable)
ungetwc Tru64 Push a byte or wide-character code back into the input stream
ungetc Tru64 Push a byte or wide-character code back into the input stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service