al_ustr_find_replace(3alleg5)

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

πŸ’– al_ustr_find_replace β€” Allegro 5 API πŸ’–

okay bestie, so this one is literally from the Allegro 5 API and it's giving "find and replace but make it C" energy. no cap, it's a whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_ustr_find_replace(ALLEGRO_USTR *us, int start_pos,
   const ALLEGRO_USTR *find, const ALLEGRO_USTR *replace)

🌸 DESCRIPTION 🌸

so what this does is replace all occurrences of find in us with replace</p>, and it starts hunting from byte offset start_pos. 🎯

the find string must be non-empty β€” that's not optional, that's the rules, periodt. πŸ™…β€β™€οΈ

it returns true on success and false on error. that's it, that's the whole thing, and honestly? iconic. πŸ‘‘


🌈 SEE ALSO 🌈


okay that's the whole page bestie, mwah πŸ’…

this lil transmission came to you straight from the Allegro reference manual, page al_ustr_find_replace(3alleg5) β€” stan forever, no skips, fr fr πŸ’–βœ¨

πŸ“¦ where this page comes from