SDL_PRILLX(3)
π SDL_PRILLX π
okay bestie so this one lives in the SDL3 FUNCTIONS crew, and it's called SDL_PRILLX β say it with me β and it's literally just a printf-formatting string for an unsigned long long value, printed as upper-case hexadecimal. that's it. that's the whole vibe. π
β¨ NAME β¨
SDL_PRILLX β a printf-formatting string for an unsigned long long value as upper-case hexadecimal. no cap. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
#define SDL_PRILLX SDL_PRILL_PREFIX "X"
look at her. one include, one define, zero drama. π¦
π DESCRIPTION π
use it like this, bestie:
SDL_Log("There are %" SDL_PRILLX " bottles of beer on the wall.", bottles);
that's the move. you smash SDL_PRILLX in right after the % and it handles the upper-case hex formatting for your unsigned long long. it's giving effortless. β¨
π«Ά tiny reminder: that%stays outside the macro, okay? the macro is the formatting part, not the whole%-thing. don't come for me.
π AVAILABILITY π
this macro is available since SDL 3.2.0. so if you're on anything older... girl. it's not there. upgrade era. ππ
mwah that's the page!! brought to you by the Simple Directmedia Layer girlies, SDL 3.4.18, and this exact manual page from SDL_PRILLX(3). go forth and format your hex, icon periodt πβ¨πΈ
π¦ 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