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

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

FGETWC(3)

Contents


NAME    [Toc]    [Back]

       fgetwc - read a wide character from a FILE stream

SYNOPSIS    [Toc]    [Back]

       #include <stdio.h>
       #include <wchar.h>

       wint_t fgetwc (FILE* stream);
       wint_t getwc (FILE* stream);

DESCRIPTION    [Toc]    [Back]

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

       The getwc function or macro functions identically to fgetwc.  It may be
       implemented as a macro, and may evaluate its argument more  than  once.
       There is no reason ever to use it.

RETURN VALUE    [Toc]    [Back]

       The fgetwc function returns the next wide-character from the stream, or
       WEOF.

ERRORS    [Toc]    [Back]

       Apart from the usual ones, there is

       EILSEQ The data obtained from the input stream does not	form  a  valid
	      character.

CONFORMING TO    [Toc]    [Back]

       ISO/ANSI C, UNIX98

SEE ALSO    [Toc]    [Back]

      
      
       fputwc(3), fgetws(3), ungetwc(3)

NOTES    [Toc]    [Back]

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

       In the absence of additional information passed to the fopen  call,  it
       is  reasonable  to  expect  that  fgetwc will actually read a multibyte
       sequence from the stream and then convert it to a wide character.



GNU				  1999-07-25			     FGETWC(3)
[ Back ]
 Similar pages
Name OS Title
fgetws Linux read a wide character string from a FILE stream
fputwc Linux write a wide character to a FILE stream
fputws Linux write a wide character string to a FILE stream
ungetwc Linux push back a wide character onto a FILE stream
getwchar Linux read a wide character from standard input
fgetwc Tru64 Get a wide character from an input stream
fgetwc FreeBSD get next wide-character from input stream
getwc NetBSD get next wide-character from input stream
getwc Tru64 Get a wide character from an input stream
getwc_unlocked Tru64 Get a wide character from an input stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service