##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::fputws

From cppreference.com
< cpp‎ | io‎ | c

Defined in header `<cwchar>` |  |
int fputws( const wchar_t* str, std::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=cpp/io/c/fputws&oldid=67602"