al_ustr_compare(3)

al_ustr_compare3

Allegro 5 api

Usage

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

Overview

This function compares us1 and us2 by code point values. Returns zero if the strings are equal, a positive number if us1 comes after us2, else a negative number.

This does not take into account locale-specific sorting rules. For that you will need to use another library.

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