##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# wprintf, fwprintf, swprintf

From cppreference.com
< c‎ | io

Defined in header `<wchar.h>` |  |
int wprintf( const wchar_t* format, ... ); | (1) |
int fwprintf( FILE *stream, const wchar_t* format, ... ); | (2) |
int swprintf( wchar_t *buffer, const wchar_t* format, ... ); | (3) |

Loads the data from the given locations, converts them to wide string equivalents and writes the results to a variety of sinks.

1) Writes the results to stdout.
2) Writes the results to a file stream `stream`.
3) Writes the results to a wide string `buffer`.

### [edit] Parameters

| This section is incomplete

### [edit] Return value

Number of wide characters written if successful or negative value if an error occurred.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

vwprintf vfwprintf vswprintf | prints formatted wide character output to stdout, a file stream or a buffer using variable argument list (function) [edit]
fputws | writes a wide string to a file stream (function) [edit]
C++ documentation for wprintf, fwprintf, swprintf

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

- Todo without reason
- Todo no example