ugetat(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

🌸 ugetat(3) β€” Allegro manual, bestie 🌸

okay so you're looking at ugetat(3) from the Allegro manual. She's a tiny function with main character energy, and she's here to help you peek at characters inside a string. Let's get into it. πŸ’–


✨ NAME ✨

ugetat β€” finds out the value of a character in a string. Part of the Allegro game programming library. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

int ugetat(const char *s, int index);

πŸ’… DESCRIPTION πŸ’…

okay so ugetat finds out the character value at the specified index in the string. A zero index parameter will return the first character of the string. If index is negative, it counts backward from the end of the string, so an index of -1 will return the last character of the string. It's giving "string reverse access, but make it cute." πŸ¦‹

Example:

int third_letter = ugetat(text_string, 2);

πŸŽ€ RETURN VALUE πŸŽ€

Returns the character value at the specified index in the string. That's the whole vibe. No cap. ✨


🌈 SEE ALSO 🌈


Allegro Β· version 4.4.3 Β· ugetat(3) β€” the footer didn't list a date, bestie, so no fake date from me. πŸ’…πŸ«Ά

πŸ“¦ where this page comes from