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 π
uconvert(3alleg4)β for the more complicated conversion situations, iykykutolower(3alleg4)β the lowercase counterpart, her quieter sisterustrlwr(3alleg4)β makes everything lowercase instead, the chill one of the family
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 πππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms