usetc(3alleg4)
β¨ usetc β low level helper function for writing Unicode text data β¨
okay bestie, welcome to the Allegro manual page for usetc, from the 3alleg4 section π this one's a little baby function but she's important, iykyk
πΈ NAME πΈ
usetc β low level helper function for writing Unicode text data. part of the Allegro game programming library. she's a helper, she's low level, she's doing her thing π
π¦ SYNOPSIS π¦
#include <allegro.h>
int usetc(char *s, int c);
literally that's the whole vibe. two args, one int coming back at you π
π DESCRIPTION π
so usetc is a low level helper function for writing Unicode text data. no cap, that's her whole job description.
what she does: she writes the character c to the address pointed to by s. that's it. that's the assignment. main character energy, minimal effort, maximum usefulness π«Ά
like, you hand her a pointer and a character, she puts the character right there at that address. done. iconic β¨
π RETURN VALUE π
she returns the number of bytes written, which is equal to the width of the character in the current encoding format. so like, depending on your encoding, a character might take up more or fewer bytes, and she'll tell you exactly how many she dropped in there π
π₯ SEE ALSO π₯
ugetc(3alleg4)β the reading counterpart, her sibling fr frugetx(3alleg4)uwidth(3alleg4)ucwidth(3alleg4)uisok(3alleg4)
and that's the whole page bestie, go forth and write your Unicode text data π
Allegro β version 4.4.3 β mwah, catch you on the next manpage, slay ππ β¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms