The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

fputws - put a wide-character string on a stream

 SYNOPSIS



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

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

 DESCRIPTION

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 st_ctime and st_mtime fields of the file will be marked for update between the successful execution of fputws() and the next successful completion of a call to fflush() or fclose() on the same stream or a call to exit() or abort().

 RETURN VALUE

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.

 ERRORS

Refer to fputwc().

 EXAMPLES

None.

 APPLICATION USAGE

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

 FUTURE DIRECTIONS

None.

 SEE ALSO

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

DERIVATION

Derived from the MSE working draft.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]