##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# fputws

From cppreference.com
< c‎ | io

Defined in header `<wchar.h>` |  |
int fputws( const wchar_t *str, FILE *stream ); |  |

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

### [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] See also

fputs | writes a character string to a file stream (function) [edit]
wprintf fwprintf swprintf | prints formatted wide character output to stdout, a file stream or a buffer (function) [edit]
fputws | writes a wide string to a file stream (function) [edit]
fgetws | gets a wide string from a file stream (function) [edit]
C++ documentation for fputws

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/io/fputws&oldid=56440"