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

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

WCTOB(3)

Contents


NAME    [Toc]    [Back]

       wctob - try to represent a wide character as a single byte

SYNOPSIS    [Toc]    [Back]

       #include <wchar.h>

       int wctob (wint_t c);

DESCRIPTION    [Toc]    [Back]

       The  wctob  function tests whether the multi-byte representation of the
       wide character c, starting in the initial state, consists of  a	single
       byte. If so, it is returned as an unsigned char.

       Never  use  this function. It cannot help you in writing internationalized
 programs. Internationalized programs must never  distinguish  single-byte
 and multi-byte characters.

RETURN VALUE    [Toc]    [Back]

       The  wctob  function returns the single-byte representation of c, if it
       exists, of EOF otherwise.

CONFORMING TO    [Toc]    [Back]

       ISO/ANSI C, UNIX98

SEE ALSO    [Toc]    [Back]

      
      
       wctomb(3)

NOTES    [Toc]    [Back]

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

       This  function  should  never  be used. Internationalized programs must
       never distinguish single-byte and multi-byte characters. Use the  function
 wctomb instead.



GNU				  1999-07-25			      WCTOB(3)
[ Back ]
 Similar pages
Name OS Title
btowc Linux convert single byte to wide character
wctob Tru64 Convert a wide character to a single byte in
wctob FreeBSD convert between wide and single-byte characters
btowc FreeBSD convert between wide and single-byte characters
btowc Tru64 Convert a single byte from multibyte-character to
fwide Tru64 Set stream orientation to byte or wide-character
ungetc Tru64 Push a byte or wide-character code back into the input stream
ungetwc Tru64 Push a byte or wide-character code back into the input stream
DtDtsBufferToAttributeValue HP-UX get a single data attribute value for a byte stream
wmemchr Linux search a wide character in a wide-character array
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service