fputwc

Converts a wide character to its corresponding multibyte value, and writes the result to a specified file.

Format

#include  <wchar.h>

wint_t fputwc  (wint_t wc, FILE *file_ptr);

Arguments

wc
An object of type wint_t.
file_ptr
A file pointer.

Description

This function writes a wide character to a file and returns the character. See also putwc in this section.

Return Values
The character written to the file. Indicates success. 
WEOF  Indicates an output error. The function sets errno to the following:

  • EILSEQ - Invalid wide-character code detected.

The function can also set errno to the following as a result of errors returned from the I/O subsystem:

  • EBADF - The file descriptor is not valid.

  • EIO - I/O error.

  • ENOSPC - No free space on the device containing the file.

  • ENXIO - Device does not exist.

  • EPIPE - Broken pipe.

  • ESPIPE - Illegal seek in a file opened for append.

  • EVMSERR - Non-translatable VMS error. vaxc$errno contains the VMS error code. This indicates that an I/O error occurred for which there is no equivalent C error code.
 


Previous Page | Next Page | Table of Contents | Index