ugetx(3)

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

✨ NAME ✨

okay so bestie, welcome to ugetx(3) πŸ’– β€” this page is all about ugetx and ugetxc, your low level helper function for reading Unicode text data. They live in the Allegro game programming library, and yes, they are iconic for that.


πŸ“œ SYNOPSIS πŸ“œ

#include <allegro.h>

int ugetx(char **s);

int ugetxc(const char **s);

πŸ¦‹ DESCRIPTION πŸ¦‹

So ugetx and ugetxc are low level helper functions for reading Unicode text data. ugetxc is provided so you can work with pointer-to-pointer-to-const char data. That's the whole vibe.

Example time, bestie:

char *p = string;
int first_letter, second_letter, third_letter;
first_letter = ugetx(&p);
second_letter = ugetx(&p);
third_letter = ugetx(&p);

πŸŽ€ RETURN VALUE πŸŽ€

It returns the character pointed to by s in the current encoding format, and then advances the pointer to the next character after the one it just handed back. No cap. πŸ’…

πŸ’– SEE ALSO πŸ’–


Signing off from the Allegro manual, version 4.4.3, on the ugetx(3) page β€” the footer didn't drop a date, so just pretend there's a cute little timestamp right here. πŸ’œβœ¨

πŸ“¦ where this page comes from