Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

fputwc(3) OSS Library Calls Reference Manual
NAME
fputwc - Writes a wide character to a specified stream
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS For TNS/E Target Compilations on H06.09 and Later RVUs
This version of the function applies to TNS/E target compilations on H06.09 and later H-series
RVUs.
#include <wchar.h>
wint_t fputwc(
wchar_t c,
FILE *stream);
SYNOPSIS For Other RVUs
This version of the function applies to TNS/R target compilations and to TNS/E target compila-
tions on H06.08 and earlier H-series RVUs.
#include <wchar.h>
wint_t fputwc(
wint_t c,
FILE *stream);
PARAMETERS
c Specifies the wide character to be written. The data type of this parameter
depends on the target compilation and the RVU the system is running:
If the target is TNS/R or if the target is TNS/E and the system is running
H06.08 or an earlier H-series RVU, the data type of this parameter can
be either wint_t or wchar_t.
If the target is TNS/E and the system is running H06.09 or a later H-
series RVU, the data type of this parameter must be wchar_t. If you
have an existing object file compiled from source text that specifies a
value of type wint_t for this parameter, you can continue to use the
object file. However, if you recompile the same source text, the com-
piler converts the wint_t value to a wchar_t value and issues a warning
message.
stream Points to the output data.
DESCRIPTION
The fputwc( ) function converts the wchar_t specified by the c parameter to its equivalent multi-
byte character and then writes the multibyte character to the stream parameter.
The fputwc( ) function works the same as putwc( ).
With the exception of stderr, output streams are, by default, buffered if they refer to files, or line
buffered if they refer to terminals. The standard error output stream, stderr, is unbuffered by
default, but using the freopen( ) function causes it to become buffered or line buffered. Use the
setbuf( ) function to change the stream’s buffering strategy.
2140 Hewlett-Packard Company 527187-017