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

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

GETWCHAR(3)

Contents


NAME    [Toc]    [Back]

       getwchar - read a wide character from standard input

SYNOPSIS    [Toc]    [Back]

       #include <wchar.h>

       wint_t getwchar (void);

DESCRIPTION    [Toc]    [Back]

       The  getwchar  function is the wide-character equivalent of the getchar
       function. It reads a wide character from stdin and returns it.  If  the
       end  of stream is reached, or if ferror(stdin) becomes true, it returns
       WEOF. If a wide character conversion error occurs,  it  sets  errno  to
       EILSEQ and returns WEOF.

RETURN VALUE    [Toc]    [Back]

       The  getwchar  function	returns  the next wide-character from standard
       input, or WEOF.

CONFORMING TO    [Toc]    [Back]

       ISO/ANSI C, UNIX98

SEE ALSO    [Toc]    [Back]

      
      
       fgetwc(3)

NOTES    [Toc]    [Back]

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

       It is reasonable to expect that getwchar will actually read a multibyte
       sequence from standard input and then convert it to a wide character.



GNU				  1999-07-25			   GETWCHAR(3)
[ Back ]
 Similar pages
Name OS Title
tee Linux read from standard input and write to standard output and files
read HP-UX read a line from standard input
read IRIX read a line from standard input
putwchar Linux write a wide character to standard output
fgetwc Linux read a wide character from a FILE stream
fgetwc Tru64 Get a wide character from an input stream
getwc FreeBSD get next wide-character from input stream
ungetwc NetBSD un-get wide-character from input stream
ungetwc FreeBSD un-get wide-character from input stream
getwchar NetBSD get next wide-character from input stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service