al_ustr_trim_ws(3alleg5)
β¨ al_ustr_trim_ws β¨
okay so bestie, welcome to the Allegro 5 API corner of the manual, section 3alleg5, and today's main character is al_ustr_trim_ws π she's a tiny little string-grooming icon and honestly? she ate.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_ustr_trim_ws(ALLEGRO_USTR *us)
π DESCRIPTION π
She removes both leading and trailing whitespace characters from a string. Like, the whole glow-up, front to back. No stray spaces left hanging around at either end, periodt.
Returns true on success, or false on error. That's it, that's the whole vibe check π¦
ngl, check that return value β she will simply tell you if something went wrong instead of just silently ghosting you.
π SEE ALSO π
al_ustr_ltrim_ws(3alleg5)β the left-side-only siblingal_ustr_rtrim_ws(3alleg5)β the right-side-only sibling
and that's the whole page, bestie π«Ά this was the Allegro reference manual, section 3alleg5, covering al_ustr_trim_ws(3alleg5) β go trim something pretty β¨π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms