al_ustr_ncompare(3)
πΈ 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