SDL_vswprintf(3)
β¨ NAME β¨
SDL_vswprintf β this works exactly like vswprintf() but doesn't require access to a C runtime. no cap, bestie. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_vswprintf(wchar_t *text, size_t maxlen, const wchar_t *fmt, va_list ap);
π DESCRIPTION π
okay so listen. This function functions identically to SDL_swprintf(), except it takes a va_list instead of using ... variable arguments. That's literally the whole vibe. π«Ά
π FUNCTION PARAMETERS π
textβ the buffer to write the string into. Must not beNULL. π«maxlenβ the maximum wide characters to write, including the null-terminator. so like the limit, bestie.fmtβ aprintf-style format wide string. Must not beNULL. π«apβ ava_listof values to be used with the format string.
β RETURN VALUE β
It returns the number of wide characters that should be written, not counting the null-terminator char, or a negative value on error. so if it's negative, something went wrong. π
π¦ THREAD SAFETY π¦
It is safe to call this function from any thread. slay, thread-safe. π
π AVAILABILITY π
This function is available since SDL 3.2.0. periodt. π
this page is from Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_vswprintf(3) page. no date on this one, but you know the vibes. bye bestie ππ¦
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms