putwc(3S)
NAME
putwc − put wide character on a stream
SYNOPSIS
#include <stdio.h>
#include <wchar.h>
wint_t putwc(wint_t wc, FILE ∗stream);
DESCRIPTION
The putwc() function is equivalent to fputwc(3S), except that if it is implemented as a macro it may evaluate stream more than once, so the argument should never be an expression with side-effects.
RETURN VALUES
Refer to fputwc(3S).
ERRORS
Refer to fputwc(3S).
USAGE
This interface is provided in order to align with some current implementations, and with possible future ISO standards.
Because it may be implemented as a macro, putwc() may treat a stream argument with side-effects incorrectly. In particular, putwc(wc, ∗f++) may not work correctly. Therefore, use of this function is not recommended; fputwc(3S) should be used instead.
SEE ALSO
SunOS 5.6 — Last change: 22 Apr 1997