FPUTWS(3) Library Functions Manual FPUTWS(3)

fputwsput a wide-character string on a stream

#include <stdio.h>
#include <wchar.h>

int fputws(const wchar_t *ws, FILE *stream);

The fputws() function writes a character string corresponding to the (null-terminated) wide-character string pointed to by ws to the stream pointed to by stream . No character corresponding to the terminating null wide-character code is written.

The and fields of the file will be marked for update between the successful execution of and the next successful completion of a call to or on the same stream or a call to or .

Upon successful completion, fputws() returns a non-negative number. Otherwise it returns -1, sets an error indicator for the stream and errno is set to indicate the error.

Refer to fputwc(3) .

None.

The fputws() function does not append a newline character.

None.

fopen(3) , <stdio.h> , <wchar.h> .

Derived from the MSE working draft.

February 1997 posix.fail