ustrcmp(3)
β¨ ustrcmp(3) β¨
okay so bestie, welcome to the Allegro manual π this one's a lil function called ustrcmp, and she lives in the Allegro game programming library. yes, the whole library. she's part of the family π«Ά
πΈ NAME πΈ
ustrcmp β compares two strings. yep that's it, that's the whole job. Allegro game programming library, no cap.
π SYNOPSIS π
#include <allegro.h>
int ustrcmp(const char *s1, const char *s2);
look at her. two lil const char * girlies walk in, one int walks out. iconic behavior π
π¦ DESCRIPTION π¦
This function compares s1 and s2. that's literally it. it takes your two strings and it's like "hmm, let me look at these" π and then it tells you how they stack up against each other. main character energy fr fr.
β RETURN VALUE β
here's the vibe check, bestie, listen up:
- zero β the strings are equal. twin flames. soulmates. π
- a positive number β
s1comes afters2in the ASCII collating sequence. she's pulling up late to the function party π’ - a negative number β anything else, so
s1comes befores2. she got there early πΈ
not me emphasizing this but: it's zero, positive, or negative. the actual magnitude is not the point. don't be out here comparing the numbers themselves like it's a score, okay? it's a vibe, not a value π
π SEE ALSO π
the whole friend group, go say hi:
and that's the whole page, bestie!! this was the ustrcmp(3) page from the Allegro manual, version 4.4.3 π she's short, she's sweet, she compares two strings and she goes home. periodt π
β¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms