SDL_isupper(3)

πŸ’– SDL_isupper(3) β€” the SDL3 FUNCTIONS girlies know πŸ’–

okay bestie, welcome to the SDL_isupper page, part of the SDL3 functions lineup πŸŽ€ she's small, she's simple, she's lowkey iconic.


✨ NAME ✨

SDL_isupper β€” report if a character is upper case. that's it. that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_stdinc.h>

int SDL_isupper(int x);

πŸ’œ DESCRIPTION πŸ’œ

okay so, real talk for a sec, because this part matters:

WARNING: regardless of system locale, this will only treat ASCII values 'A' through 'Z' as true.

like. no cap. she does not care what your locale is doing, she does not care about your fancy accented capitals, she is checking exactly 'A' through 'Z' and nothing else. that's her whole personality and honestly? respect. 😀


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • x β€” the character value you wanna check. that's the one. that's the input. 🫢

⭐ RETURN VALUE ⭐

returns non-zero if x falls within the character class, and zero otherwise. so like, truthy/falsy energy but in C. if (SDL_isupper(x)) and you're good to go ✨


🧚 THREAD SAFETY 🧚

she's safe to call from any thread. go wild. no locking, no drama, no "wait your turn". main character energy across every thread fr fr πŸ’€πŸ’–


πŸ‘‘ AVAILABILITY πŸ‘‘

this function has been available since SDL 3.2.0. so if you're on anything older, no she's not there yet, sorry babe πŸ™ˆ


and that's the whole page!! every detail accounted for, nothing skipped, we ate and left no crumbs πŸ“

Simple Directmedia Layer β€” SDL 3.4.18 β€” that's the source and version, and SDL_isupper(3) is your girl. thanks for coming to my TED talk, ily, go uppercase something πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from