al_ustr_ncompare(3)

al_ustr_ncompare3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
int al_ustr_ncompare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2, int n)

Overview

Like al_ustr_compare(3) but only compares up to the first n code points of both strings.

Returns zero if the strings are equal, a positive number if us1 comes after us2, else a negative number.

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.