pack_mgetl(3)
π pack_mgetl β the Allegro manual, but make it make sense π
okay bestie, so this is a page from the Allegro manual (yes, the Allegro game programming library, she's iconic) and today's main character is pack_mgetl. it's a lil function, it's lowkey underrated, and by the end of this you're gonna be obsessed. periodt. β¨
πΈ NAME πΈ
pack_mgetl β like pack_getc(), but using 32-bit Motorola byte ordering words. Allegro game programming library. π
π¦ SYNOPSIS π¦
#include <allegro.h>
long pack_mgetl(PACKFILE *f);
β¨ DESCRIPTION β¨
so it's giving pack_getc energy, right? but instead of one lil byte, pack_mgetl reads a 32-bit long from a file. π₯
and the way that it reads it?? Motorola byte ordering β aka most significant byte first, aka big-endian. she's fancy like that. π
π SEE ALSO π
pack_getc(3)β the sibling, the origin story, the blueprint π«Ά
and that's the whole vibe, bestie β go read your bytes the big-endian way and slay. π
this page came to you straight from Allegro version 4.4.3, so if you ever need to cite her, you know exactly which queen you're talking about. mwah. ππ
π¦ 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