fputws

Writes a wide-character string to a file without copying the null terminating character.

Format

#include  <wchar.h>

int fputws  (const wchar_t *wstr, FILE *file_ptr);

Arguments

wstr
A pointer to a wide-character string.
file_ptr
A file pointer.

Description

The function converts the specified wide-character string to a multibyte character string and writes it to the specified file. The function does not append a terminating null byte corresponding to the null wide-character to the output string.

Return Values
Nonnegative value  Indicates success. 
-1  Indicates an error. The function sets errno. For a list of the values see fputwc in this section. 


Previous Page | Next Page | Table of Contents | Index