SDL_isxdigit(3)

πŸ’– SDL_isxdigit(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the group chat, where we're checking whether a character is a hexadecimal digit ✨ it's giving "is this a 0-9 or an A-F situation" and honestly? iconic. no cap. πŸŽ€


✨ NAME ✨

SDL_isxdigit β€” report if a character is a hexadecimal digit πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_stdinc.h>

int SDL_isxdigit(int x);

🌸 DESCRIPTION 🌸

WARNING: regardless of whatever the system locale is doing, this function will only treat ASCII values 'A' through 'F', 'a' through 'f', and '0' through '9', as true. that's it. that's the whole guest list. 🚫🌍

so like, don't come in here expecting locale-aware behaviour, because she does not know her. strictly ASCII, strictly those ranges, periodt. 🫢


πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • x β€” the character value you wanna check, bestie πŸ”

πŸ’œ RETURN VALUE πŸ’œ

returns non-zero if x falls within the character class, and zero otherwise. simple as. slay. ✨


🧚 THREAD SAFETY 🧚

it is safe to call this function from any thread. go wild, multithreaded queen πŸ‘‘


🌈 AVAILABILITY 🌈

this function has been available since SDL 3.2.0 β€” she's been here, she's been thriving, main character energy from day one πŸ’–


mwah πŸ’‹ thanks for reading, bestie β€” this lil page came to you from Simple Directmedia Layer, version SDL 3.4.18. now go hex-decode something and make me proud πŸŽ€

πŸ“¦ where this page comes from