sdlVswprintf function
int
sdlVswprintf(
- Pointer<
NativeType> arg0, - int maxlen,
- Pointer<
Int16> fmt, - Pointer<
NativeType> arg3,
This works exactly like vswprintf() but doesn't require access to a C runtime.
Functions identically to SDL_swprintf(), except it takes a va_list
instead of using ...
variable arguments.
\param text the buffer to write the string into. Must not be NULL.
\param maxlen the maximum wide characters to write, including the
null-terminator.
\param fmt a printf-style format wide string. Must not be NULL.
\param ap a va_list
values to be used with the format string.
\returns the number of wide characters that should be written, not counting
the null-terminator char, or a negative value on error.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_vswprintf(SDL_OUT_Z_CAP(maxlen) wchar_t *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const wchar_t *fmt, va_list ap) SDL_WPRINTF_VARARG_FUNCV(3)
Implementation
int sdlVswprintf(Pointer<NativeType> arg0, int maxlen, Pointer<Int16> fmt,
Pointer<NativeType> arg3) {
final sdlVswprintfLookupFunction = libSdl3.lookupFunction<
Int32 Function(Pointer<NativeType> arg0, Uint32 maxlen,
Pointer<Int16> fmt, Pointer<NativeType> arg3),
int Function(Pointer<NativeType> arg0, int maxlen, Pointer<Int16> fmt,
Pointer<NativeType> arg3)>('SDL_vswprintf');
return sdlVswprintfLookupFunction(arg0, maxlen, fmt, arg3);
}