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 πŸ”₯


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 πŸŽ€πŸ’…βœ¨