![]() |
![]() |
![]() |
Print formatted output into a string
#include <wchar.h> int swprintf( wchar_t * ws, size_t n, const wchar_t * format, ... );
libc
The swprintf() function is equivalent to the fwprintf() function, except that the argument ws specifies a character array into which the generated output is placed, rather than to a file. A null character is placed at the end of the generated character string.
The format string is the same as the one used by printf(). The swprint() function is the wide-character version of sprintf().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
errno, fwprintf(), printf(), vfwprintf(), vwprintf(), vswprintf(), wprintf()
![]() |
![]() |
![]() |