ugetat(3)
πΈ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms