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 β€” s1 comes after s2 in the ASCII collating sequence
  • a negative number β€” anything else, i.e. s1 comes before s2 πŸ’€
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:


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 πŸ’–βœ¨πŸŒˆ