Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

Guardian Native C Library Calls (f) fputws(3)
NAME
fputws - Writes a wide-character string to a stream
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <wchar.h>
int fputws(
wchar_t *string,
FILE *stream);
PARAMETERS
string Points to a string to be written to output.
stream Points to the FILE structure of an open le.
DESCRIPTION
The fputws() function writes the wchar_t string pointed to by the string parameter to the output
stream. Each element of the string parameter is converted to the equivalent multibyte character.
In all other respects, fputws( ) functions like fputs().
The st_ctime and st_mtime elds of the le are marked for update between the successful exe-
cution of the fputws( ) function, and the next successful completion of a call to the fush() or
fclose( ) function on the same stream, or a call to the exit() or abort() function.
RETURN VALUES
Upon successful completion, the fputws( ) function returns the number of characters written.
This function returns EOF on an error.
ERRORS
If any of the following conditions occur, the fputws() function sets errno to the corresponding
value.
[EAGAIN] The O_NONBLOCK ag is set for the le descriptor underlying stream and the
process would be delayed in the write operation.
[EBADF] The le descriptor underlying stream is not a valid le descriptor open for writ-
ing.
[EFBIG] An attempt was made to write to a le that exceeds the processs le size limit or
the maximum le size.
[EINTR] The read operation was interrupted by a signal that was caught, and no data was
transferred.
[EIO] The implementation supports job control; the process is a member of a back-
ground process group attempting to write to its controlling terminal; TOSTOP is
set; the process is neither ignoring nor blocking SIGTTOU; and the process
group of the process is orphaned.
[ENOMEM] Insufcient storage space available.
527192-005 Hewlett-Packard Company 253