WPRINTF(3) BSD Library Functions Manual WPRINTF(3)
NAME
fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, wprintf -- formatted wide character output conversion
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdio.h>
#include <wchar.h>
int
fwprintf(FILE *restrict stream, const wchar_t *restrict format, ...);
int
swprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, ...);
int
wprintf(const wchar_t *restrict format, ...);
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
int
vfwprintf(FILE *restrict stream, const wchar_t *restrict format, va_list arg);
int
vswprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, va_list arg);
int
vwprintf(const wchar_t *restrict format, va_list arg);
DESCRIPTION
The wprintf() family of functions produces output according to a format, as described below. The wprintf() and vwprintf() functions write
output to stdout, the standard output stream; fwprintf() and vfwprintf() write output to the given output stream; swprintf() and vswprintf()
write to the wide character string ws.
Extended locale versions of these functions are documented in wprintf_l(3). See xlocale(3) for more information.
These functions write the output under the control of a format string that specifies how subsequent arguments (or arguments accessed via the
variable-length argument facilities of stdarg(3)) are converted for output.
These functions return the number of characters printed (not including the trailing '