<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
PUTWC(3P)</title>
</head>
<body>
<div class="mandoc">
<table class="head">
<tbody>
<tr>
<td class="head-ltitle">
PUTWC(3P)</td>
<td class="head-vol">
POSIX Programmer's Manual</td>
<td class="head-rtitle">
PUTWC(3P)</td>
</tr>
</tbody>
</table>
<div class="section">
<h1>PROLOG</h1> This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.<div style="height: 1.00em;">
&#160;</div>
</div>
<div class="section">
<h1>NAME</h1> putwc &#8212; put a wide character on a stream</div>
<div class="section">
<h1>SYNOPSIS</h1><br/>
#include &lt;stdio.h&gt;<br/>
#include &lt;wchar.h&gt;<div class="spacer">
</div>
wint_t putwc(wchar_t <i>wc</i>, FILE *<i>stream</i>);<br/>
</div>
<div class="section">
<h1>DESCRIPTION</h1> The functionality described on this reference page is aligned with the ISO&#160;C standard. Any conflict between the requirements described here and the ISO&#160;C standard is unintentional. This volume of POSIX.1&#8208;2008 defers to the ISO&#160;C standard.<div class="spacer">
</div>
The  <i>putwc</i>() function shall be equivalent to  <i>fputwc</i>(), except that if it is implemented as a macro it may evaluate <i>stream</i> more than once, so the argument should never be an expression with side-effects.</div>
<div class="section">
<h1>RETURN VALUE</h1> Refer to <i><i>fputwc</i>()</i>.</div>
<div class="section">
<h1>ERRORS</h1> Refer to <i><i>fputwc</i>()</i>.<div class="spacer">
</div>
<i>The following sections are informative.</i></div>
<div class="section">
<h1>EXAMPLES</h1> None.</div>
<div class="section">
<h1>APPLICATION USAGE</h1> Since it may be implemented as a macro,  <i>putwc</i>() may treat a <i>stream</i> argument with side-effects incorrectly. In particular,  <i>putwc</i>(<i>wc</i>,*<i>f</i>++) need not work correctly. Therefore, use of this function is not recommended;  <i>fputwc</i>() should be used instead.</div>
<div class="section">
<h1>RATIONALE</h1> None.</div>
<div class="section">
<h1>FUTURE DIRECTIONS</h1> None.</div>
<div class="section">
<h1>SEE ALSO</h1> <i>Section 2.5</i>, <i>Standard I/O Streams</i>, <i><i>fputwc</i>()</i><div class="spacer">
</div>
The Base Definitions volume of POSIX.1&#8208;2008, <i><b>&lt;stdio.h&gt;</b></i>, <i><b>&lt;wchar.h&gt;</b></i></div>
<div class="section">
<h1>COPYRIGHT</h1> Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.unix.org/online.html .<div style="height: 1.00em;">
&#160;</div>
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .</div>
<table class="foot">
<tr>
<td class="foot-date">
2013</td>
<td class="foot-os">
IEEE/The Open Group</td>
</tr>
</table>
</div>
</body>
</html>

