Updated: April 19, 2023 |
Write wide-character formatted output to a buffer (varargs)
#include <wchar.h> #include <stdarg.h> int vswprintf( wchar_t * buf, size_t n, const wchar_t * format, va_list arg );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The vswprintf() function formats data under control of the format control string, and writes the result to buf.
The vswprint() function is the wide-character version of vsprintf(), and is a varargs version of swprintf().
The number of wide characters written, excluding the terminating NUL, or a negative number if an error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |