ustricmp(3)

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

🌸 NAME 🌸

okay bestie, welcome to ustricmp(3) from the Allegro manual! This one is a function that compares two strings while ignoring case. It's part of the Allegro game programming library. No cap. 🫢


✨ SYNOPSIS ✨

#include <allegro.h>

int ustricmp(const char *s1, const char *s2);

πŸ’… DESCRIPTION πŸ’…

So like, ustricmp takes s1 and s2 and compares them, but it does not care about case. Uppercase? Lowercase? Same vibe. It's giving equality, but make it fashion. Example:

if (ustricmp(string, user_input) == 0) {
   /* string and user_input are equal (ignoring case) */
}

πŸ¦‹ RETURN VALUE πŸ¦‹

  • If the strings are equal? Returns zero. Slay.
  • If s1 comes after s2 in the ASCII collating sequence? Returns a positive number.
  • Otherwise? Returns a negative number.

πŸŽ€ SEE ALSO πŸŽ€


And that's the whole page, bestie! This was ustricmp(3) from the Allegro manual, version 4.4.3. Stay iconic. πŸ’–

πŸ“¦ where this page comes from