al_ustr_trim_ws(3alleg5)

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

✨ 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 πŸ‘‘


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