fgetwc, getwc - read a wide character from a FILE stream


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

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


   The  fgetwc() function is the wide-character equivalent of the fgetc(3)
   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.

   For nonlocking counterparts, see unlocked_stdio(3).


   The  fgetwc() function returns the next wide-character from the stream,
   or WEOF.  In the event of an error, errno is set to indicate the cause.


   Apart from the usual ones, there is

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


   For   an   explanation   of   the  terms  used  in  this  section,  see

   │InterfaceAttributeValue   │
   │fgetwc(), getwc() │ Thread safety │ MT-Safe │


   POSIX.1-2001, POSIX.1-2008, C99.


   The behavior of fgetwc()  depends  on  the  LC_CTYPE  category  of  the
   current locale.

   In  the  absence of additional information passed to the fopen(3) 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.


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


   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at

More Linux Commands

Tcl_DeleteThreadExitHandler(3) - end the application or thre
The procedures described here provide a graceful mechanism to end the execution of a Tcl application. Exit handlers are invoked to cleanup the applications stat

FcStrPlus(3) - concatenate two strings - Linux manual page
This function allocates new storage and places the concatenation of s1 and s2 there, returning the new string. VERSION Fontconfig version 2.8.0 FcStrPlus.3 (Lib

pam_sm_setcred(3) - PAM service function to alter credential
The pam_sm_setcred function is the service modules implementation of the pam_setcred(3) interface. This function performs the task of altering the credentials o

menu_userptr(3menu) - associate application data with a menu
Every menu item has a field that can be used to hold application-specific data (that is, the menu-driver code leaves it alone). These functions get and set that

chage(1) - change user password expiry information (ManPage)
The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determ

systemd-ask-password(1) - Query the user for a system passwo
systemd-ask-password may be used to query a system password or passphrase from the user, using a question message specified on the command line. When run from a

snmp_api_errstring(3) - netsnmp_session_api functions.......
Snmp_sess_init prepares a netsnmp_session that sources transport characteristics and common information that will be used for a set of SNMP transactions. After

sane(7) - Scanner Access Now Easy: API for accessing scanner
SANE is an application programming interface (API) that provides standardized access to any raster image scanner hardware. The standardized interface makes it p

gnutls_pubkey_import_openpgp(3) - API function (Man Page)...
Imports a public key from an openpgp key. This function will import the given public key to the abstract gnutls_pubkey_t structure. The subkey set as preferred

Tcl_SetVar2(3) - manipulate Tcl variables - Linux man page
These procedures are used to create, modify, read, and delete Tcl variables from C code. Tcl_SetVar2Ex, Tcl_SetVar, Tcl_SetVar2, and Tcl_ObjSetVar2 will create

XShapeCombineRegion(3) - X nonrectangular shape functions...
The X11 Nonrectangular Window Shape Extension adds nonrectangular windows to the X Window System. PREDEFINED VALUES Operations: ShapeSet ShapeUnion ShapeInterse

zshroadmap(1) - informal introduction to the zsh manual.....
The Zsh Manual, like the shell itself, is large and often complicated. This section of the manual provides some pointers to areas of the shell that are likely..

We can't live, work or learn in freedom unless the software we use is free.