pack_ungetc(3alleg4)
π pack_ungetc β the manual page, but make it cute π
okay bestie, welcome to the Allegro manual (section 3alleg4, iykyk) πΈ this one's about a tiny little function with main character energy: pack_ungetc from the Allegro game programming library. she's small. she's powerful. she puts a character BACK. periodt. π
β¨ NAME β¨
pack_ungetc</purpose> β moves one single character back to the input buffer. this is your Allegro game programming library girlie π
π¦ SYNOPSIS π¦
#include <allegro.h>
int pack_ungetc(int c, PACKFILE *f);
like. that's it. that's the whole vibe. no cap. β¨
πΈ DESCRIPTION πΈ
so here's the tea, bestie π β this function puts a character back into the file's input buffer. it's giving "jk, never mind, put it back" energy and honestly? iconic.
but listen β just like ungetc from libc, only a single push back is guaranteed. one. uno. a single. don't get greedy, she said what she said π
β οΈ note, and this one MATTERS:pack_fgets<highkey>internally uses</highkey>pack_ungetc, so never usepack_ungetcdirectly after usingpack_fgetson aPACKFILE. like, just don't. that's the rule. respect it or things get weird π
π RETURN VALUE π
- returns
con success π«Ά slay - or
EOFon error π rip
π SEE ALSO π
her sisters. her besties. go read them next, fr fr π¦
okay that's the whole page, bestie! this little love letter came to you courtesy of Allegro, version 4.4.3 π β the same legends behind pack_ungetc(3alleg4) itself. mwah. go write some code. you got this. πβ¨
π¦ 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