fputws

From cppreference.com
< c‎ | io
 
 
File input/output


Functions
File access
(C11)
(C95)
Direct input/output
Unformatted input/output
(C95)(C95)
(C95)
(C95)(C95)
fputws
(C95)
(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
Operations on files
 
Defined in header <wchar.h>
int fputws( const wchar_t *str, FILE *stream );
(since C95)

Writes given null-terminated wide string to the given output stream.

Contents

[edit] Parameters

str - null-terminated wide string to be written
stream - output stream

[edit] Return value

non-negative integer on success, WEOF on failure

[edit] References

  • C11 standard (ISO/IEC 9899:2011):
  • 7.29.3.4 The fputws function (p: 423)
  • C99 standard (ISO/IEC 9899:1999):
  • 7.24.3.4 The fputws function (p: 368)

[edit] See also

writes a character string to a file stream
(function)
prints formatted wide character output to stdout, a file stream or a buffer
(function)
fputws
(C95)
writes a wide string to a file stream
(function)
(C95)
gets a wide string from a file stream
(function)
C++ documentation for fputws