ustrlwr(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ ustrlwr β€” the Allegro manual, but make it cute ✨

okay so bestie, welcome to ustrlwr, a lil function from the Allegro game programming library that's about to lowercase your whole entire life πŸ’… this page lives in section 3 of the manual, and honestly? it's giving lowercase icon behavior.


🌸 NAME 🌸

ustrlwr β€” replaces all letters with lower case. it's part of the Allegro game programming library, and yes she's as simple as she sounds πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

char *ustrlwr(char *s);

that's it. that's the whole vibe. one include, one function, one pointer. clean. ✨


πŸ’– DESCRIPTION πŸ’–

so here's the tea, bestie: this function goes through s and replaces all the upper case letters with lower case letters. every single one. no cap. πŸ”₯

it does NOT touch anything that isn't an upper case letter, it just quietly lowercases the loud ones. main character energy, honestly β€” she walks in, calms everyone down, and leaves. πŸ‘‘

here's the example from the original, verbatim, because we do not edit the holy code:

char buffer[] = "UPPER CASE STRING";
allegro_message(ustrlwr(buffer));

look at that. "UPPER CASE STRING" goes in, and lowercase goodness comes out. the way that allegro_message() is just sitting there ready to show off the glow-up... obsessed 🌈


πŸŽ€ RETURN VALUE πŸŽ€

the return value is the value of s. yes literally the same pointer, bestie β€” she hands you back exactly what you gave her, just... lowercased now. 🫢


🧚 SEE ALSO 🧚

(that last one is her uppercase sibling, iykyk β€” they're a matched set fr fr πŸ’œ)


πŸ’€ friendly reminder: this page is Allegro business, so keep the #include <allegro.h> and don't go renaming anything, bestie. the details are the details.

and that's the whole page!! written for Allegro, version 4.4.3, and yes this is ustrlwr(3) once again, signing off like the lowercase legend she is πŸ’…βœ¨ bye bestie, go lowercase something πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from