ustrcmp(3alleg4)
π NAME π
ok so bestie, gather round β ustrcmp is here to compare two strings for you. she's part of the Allegro game programming library, and she is lowkey the moment. β¨
πΈ SYNOPSIS πΈ
#include <allegro.h>
int ustrcmp(const char *s1, const char *s2);
π¦ DESCRIPTION π¦
fr fr, all this function does is compare s1 and s2. that's it. that's the whole vibe. two strings walk in, one comparison walks out. π
β¨ RETURN VALUE β¨
here's the tea on what she hands back to you:
0β the strings are literally equal, no cap π«Ά- a positive number β
s1comes afters2in the ASCII collating sequence - a negative number β anything else, i.e.
s1comes befores2π
ngl the exact magnitude doesn't matter, bestie β it's giving sign energy, not size energy. just check whether it's zero, positive, or negative and you're golden. π
π SEE ALSO π
go give these icons their moment too:
uconvert(3alleg4)ustrsize(3alleg4)ustrsizez(3alleg4)ustrncmp(3alleg4)ustricmp(3alleg4)ustrnicmp(3alleg4)
okay that's the whole page, you ate that π this was ustrcmp from Allegro version 4.4.3, dated the same, and honestly? iconic. go compare some strings, bestie, i believe in you πβ¨π
π¦ 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