al_ustr_ncompare(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

🌸 NAME 🌸

al_ustr_ncompare β€” Allegro 5 API. That's the name section, bestie, and yes, we're hanging out in the Library Functions Manual today πŸ’…

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_ustr_ncompare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2, int n)

πŸ’– DESCRIPTION πŸ’–

Okay so this one is literally like al_ustr_compare(3), but it only compares up to the first n code points of both strings. No cap.

It returns zero if the strings are equal, a positive number if us1 comes after us2, and otherwise a negative number. That's the whole vibe check 😌

πŸ¦‹ SEE ALSO πŸ¦‹


Cute sign-off time: source/version β€” Allegro reference manual; page β€” al_ustr_ncompare(3); date β€” the footer didn't give me one, so I'm not gonna invent it, bestie πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms