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 be NULL. 🚫
  • maxlen β€” the maximum wide characters to write, including the null-terminator. so like the limit, bestie.
  • fmt β€” a printf-style format wide string. Must not be NULL. 🚫
  • ap β€” a va_list of 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