SDL_toupper(3)
π SDL_toupper(3) π
okay bestie, so like β ever had a lowercase letter that just needed a lil glow-up? that's literally this. it's SDL_toupper, from the SDL3 functions crew, and she converts low-ASCII English letters to uppercase. periodt. β¨
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_toupper(int x);
π DESCRIPTION π
β οΈ WARNING, babe, listen up: no matter what your system locale is doing, this function will only convert ASCII values'a'through'z'to uppercase. that's it. that's the whole range. she does not care about your fancy locale, she said "ASCII only, and I mean it." π
so basically, this function returns the uppercase equivalent of x. and if a character cannot be converted, or if it's already uppercase (she's already iconic, nothing to do here), this function just returns x back to you untouched. no drama, no changes. π¦
π«Ά FUNCTION PARAMETERS π«Ά
xβ the character value to check. that's the vibe you're handing over. π
β RETURN VALUE β
returns the capitalized version of x β or x if no conversion was available. either way you're getting a x back, it's just a question of whether she upgraded it or not. π
π THREAD SAFETY π
it is safe to call this function from any thread. go wild. multi-threaded, single-threaded, whatever-threaded. she's chill like that. π₯
π AVAILABILITY π
this function is available since SDL 3.2.0. so if you're on an older SDL, bestie... it's giving "not yet." π
and that's the whole page, no cap. simple directmedia layer, SDL 3.4.18, and the SDL_toupper(3) manual β mwah, love that for us. stan a one-job function that does her one job flawlessly. π§π
π¦ 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