uisdigit(3alleg4)

✨ uisdigit(3alleg4) ✨

okay bestie, so this one is from the Allegro game programming library and it's literally the cutest little detective πŸ’… her whole job is checking if a character is a digit.


πŸŽ€ NAME πŸŽ€

uisdigit β€” tells you if a character is a digit, periodt. part of the Allegro game programming library πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro.h>

int uisdigit(int c);

πŸ’– DESCRIPTION πŸ’–

so you hand her a character c and she goes is this a digit or not β€” and if it IS a digit, she returns nonzero. that's the whole vibe check 🫢

like, watch her cook in this loop:

for (counter = 0; counter < ustrlen(text_string); counter++) {
   if (uisdigit(ugetat(text_string, counter)))
      usetat(text_string, counter, '*');
}

see how she's just going through every character one by one and swapping the digits out for '*'? iconic behavior honestly 😭✨


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, no cap πŸ’€ this was Allegro, version 4.4.3, and uisdigit(3alleg4) said what she said. go check a digit, bestie πŸŒˆβ­πŸ’œ