SDL_isprint(3)

✨ NAME ✨

okay so bestie, welcome to SDL_isprint(3), from the SDL3 FUNCTIONS manual. this one is SDL_isprint β€” report if a character is "printable". that's the whole job. πŸ’…

✨ SYNOPSIS ✨

here's the summoning circle, copy it exactly:

#include <SDL3/SDL_stdinc.h>

int SDL_isprint(int x);

πŸ’… DESCRIPTION πŸ’…

so like, be advised: "printable" has a definition that goes back to text terminals from the dawn of computing. that makes this a sort of special case function that is not suitable for Unicode (or most any) text management. it's giving retro terminal core, not modern text girlie. 😭

⚠️ WARNING: Regardless of system locale, this will only treat ASCII values ' ' (0x20) through '~' (0x7E) as true.

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • x β€” character value to check. 🫢

🫢 RETURN VALUE 🫢

Returns non-zero if x falls within the character class, zero otherwise. periodt. ✨

🧚 THREAD SAFETY 🧚

It is safe to call this function from any thread. no cap, any thread can pull up and ask. πŸ¦‹

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on something older, she's not there yet. πŸ’€


source/version: Simple Directmedia Layer, SDL 3.4.18 β€” page for SDL_isprint(3). the date slot is giving empty, so consider this your timestamp: right now, bestie βœ¨πŸ«ΆπŸ’… mwah.

πŸ“¦ where this page comes from