ustrupr(3alleg4)

✨ ustrupr β€” the "make it SCREAM" function ✨

okay bestie, so this is a page from the Allegro manual (yes, the Allegro game programming library, the icon herself πŸ’…), and we're talking about ustrupr, which is lowkey one of the most straightforward little glow-ups in the whole library.


🌸 SYNOPSIS 🌸

#include <allegro.h>

char *ustrupr(char *s);

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: ustrupr takes every single lower case letter chilling inside s and replaces it with its upper case version. that's it. that's the function. she does one thing and she does it WELL. no cap. πŸ‘‘

it's giving "text makeover montage" energy, fr fr. every lil lowercase baddie gets promoted to uppercase main character status. ✨

like, for example, watch this:

char buffer[] = "lower case string";
allegro_message(ustrupr(buffer));

literally just vibe-checks your string and hands it back in ALL CAPS. iconic behaviour honestly. πŸŽ€


πŸ¦‹ RETURN VALUE πŸ¦‹

the return value is the value of s. yeah. that's it. she gives you back the exact same pointer she was handed. same s, same energy, but now it's LOUD. 🫢


🌈 SEE ALSO 🌈


no cap, that's the entire page. tiny function, big personality. πŸ’œ

and that's a wrap, bestie! this was ustrupr(3alleg4) from Allegro version 4.4.3 β€” go forth and make your strings SCREAM, you absolute legend πŸŒŸπŸ’–πŸŽ€