Name

wprintf

Synopsis

Prints formatted wide-character string output

#include <wchar.h>
intwprintf( const wchar_t * restrict format, ... );

The wprintf() function is similar to printf(), except that its format string argument is a string of wide characters, and it prints wide character output to stdout.

Example

See the examples for iswalnum() and wscanf() in this chapter.

See Also

swprintf() and fwprintf(), declared in stdio.h and wchar.h; vwprintf(), vfwprintf(), and vswprintf(), declared in stdarg.h; printf(), fprintf(), sprintf(), and snprintf(), declared in stdio.h; vprintf(), vfprintf(), vsprintf(), and vsnprintf(), declared in stdarg.h; the wscanf() input functions. Argument conversion in the printf() family of functions is described in detail under printf() in this chapter.

Get C in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.