Format
#include <stdio.h> int wprintf(const wchar_t *format,...);
Language Level: ANSI
Threadsafe: Yes.
Description
A wprintf(format, ... ) is equivalent to fwprintf(stdout, format, ... ).
Return Value
The wprintf() function returns the number of wide characters transmitted. If an output error occurred, the wprintf() function returns a negative value.
Example that uses wprintf()
This example prints the wide character a. Date and time may be formatted according to your locale's representation. The output goes to stdout.
#include <wchar.h> #include <stdarg.h> #include <locale.h> int main(void) { setlocale(LC_ALL, "POSIX"); wprintf (L"%c\n", L'a'); return(0); } /* A long 'a' is written to stdout */
Related Information
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.