Namespaces
Variants
Views
Actions

wprintf, fwprintf, swprintf

From cppreference.com
< c‎ | io
Revision as of 22:38, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <wchar.h>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
int wprintf( const wchar_t* format, ... );
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
int fwprintf( FILE *stream, const wchar_t* format, ... );
</td>

<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
int swprintf( char *buffer, const wchar_t* format, ... );
</td>

<td > (3) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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.

Contents

Parameters

Return value

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

Example

See also

Template:c/io/dcl list vfwprintfTemplate:c/io/dcl list fputws
C++ documentation for wprintf, fwprintf, swprintf