al_ustr_rtrim_ws(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

al_ustr_rtrim_ws β€” Allegro 5 API πŸ’– bestie, this is the page for al_ustr_rtrim_ws(3alleg5), and it's literally the "clean up the right side" string function. No cap.

πŸŽ€ SYNOPSIS πŸŽ€

Here's the summoning spell, fr fr:

#include <allegro5/allegro.h>

bool al_ustr_rtrim_ws(ALLEGRO_USTR *us)

πŸ’… DESCRIPTION πŸ’…

Okay so picture this: your string has trailing β€” aka "right" β€” whitespace characters just chilling at the end. al_ustr_rtrim_ws() removes them. What counts as whitespace? The exact same definition as the C function isspace(), periodt. 🧚

Returns true on success, or false on error. That's the whole vibe check, bestie. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

Go give these a peek too:


source/version + date check: this page is from the Allegro reference manual, and the page tag is al_ustr_rtrim_ws(3alleg5). The original footer didn't list a date, so there's no date to spill β€” but the energy is timeless, bestie βœ¨πŸ’…πŸ«Ά

πŸ“¦ where this page comes from