NAME
fputwc, putwc - write a wide character to a FILE stream
SYNOPSIS
#include <stdio.h> #include <wchar.h> wint_t fputwc(wchar_t wc, FILE *stream); wint_t putwc(wchar_t wc, FILE *stream);
DESCRIPTION
The fputwc() function is the wide-character equivalent of the fputc(3) function. It writes the wide character wc to stream. If ferror(stream) becomes true, it returns WEOF. If a wide-character conversion error occurs, it sets errno to EILSEQ and returns WEOF. Otherwise, it returns wc. The putwc() function or macro functions identically to fputwc(). 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).
RETURN VALUE
The fputwc() function returns wc if no error occurred, or WEOF to indicate an error. In the event of an error, errno is set to indicate the cause.
ERRORS
Apart from the usual ones, there is EILSEQ Conversion of wc to the stream's encoding fails.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). Interface Attribute Value fputwc(), putwc() Thread safety MT-Safe
CONFORMING TO
POSIX.1-2001, POSIX.1-2008, C99.
NOTES
The behavior of fputwc() 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 fputwc() will actually write the multibyte sequence corresponding to the wide character wc.
SEE ALSO
fgetwc(3), fputws(3), unlocked_stdio(3)
COLOPHON
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 https://www.kernel.org/doc/man-pages/.
More Linux Commands
manpages/ethers.5.html
ethers(5) - Ethernet address to IP number database (ManPage)
/etc/ethers contains 48 bit Ethernet addresses and their corresponding IP numbers, one line for each IP number: Ethernet-address IP-number The two items are sep
manpages/Tcl_CreateCommand.3.html
Tcl_CreateCommand(3) - implement new commands in C (ManPage)
Tcl_CreateCommand defines a new command in interp and associates it with procedure proc such that whenever cmdName is invoked as a Tcl command (via a call to Tc
manpages/svnserve.conf.5.html
svnserve.conf(5) - Repository configuration file for svnserv
svnserve.conf controls the behavior of the svnserve daemon on a per-repository basis. It is located in the conf subdirectory of the repository. The overall stru
manpages/coroutine.n.html
coroutine(n) Create and produce values from coroutines......
The coroutine command creates a new coroutine context (with associated command) named name and executes that context by calling command, passing in the other re
manpages/git-sh-i18n--envsubst.1.html
git-sh-i18n--envsubst(1) - Gits own envsubst(1) for i18n fal
This is not a command the end user would want to run. Ever. This documentation is meant for people who are studying the plumbing scripts and/or are writing new
manpages/glGetTexGenfv.3gl.html
glGetTexGenfv(3gl) - return texture coordinate generation pa
glGetTexGen returns in params selected parameters of a texture coordinate generation function that was specified using glTexGen. coord names one of the (s, t, r
manpages/wbkgrndset.3ncurses.html
wbkgrndset(3ncurses) - curses window complex background mani
The bkgrndset and wbkgrndset routines manipulate the background of the named window. The window background is a cchar_t consisting of any combination of attribu
manpages/fstab.5.html
fstab(5) - static information about the filesystems.........
The file fstab contains descriptive information about the various file systems. fstab is only read by programs, and not written; it is the duty of the system ad
manpages/gnutls_x509_crl_privkey_sign.3.html
gnutls_x509_crl_privkey_sign(3) - API function (Man Page)...
gnutls_x509_crl_privkey_sign.3 - This function will sign the CRL with the issuers private key, and will copy the issuers information into the CRL. This must be
manpages/ip-rule.8.html
ip-rule(8) routing policy database management (Man Page)....
ip rule manipulates rules in the routing policy database control the route selection algorithm. Classic routing algorithms used in the Internet make routing dec
manpages/Tcl_ParseBraces.3.html
Tcl_ParseBraces(3) - parse Tcl scripts and expressions......
These procedures parse Tcl commands or portions of Tcl commands such as expressions or references to variables. Each procedure takes a pointer to a script (or p
manpages/XSetFillRule.3.html
XSetFillRule(3) - GC convenience routines - Linux man page
The XSetFillStyle function sets the fill-style in the specified GC. XSetFillStyle can generate BadAlloc, BadGC, and BadValue errors. The XSetFillRule function s
