pack_iputl(3alleg4)

✨ pack_iputl ✨

okay bestie, welcome to the Allegro manual πŸ’– this one's a lil function called pack_iputl, and she is so useful for your Allegro game programming library era πŸŽ€


🌸 NAME 🌸

pack_iputl β€” it's giving pack_putc(), but for 32-bit Intel byte ordering words πŸ’… and yes she lives in the Allegro game programming library, periodt ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

long pack_iputl(long c, PACKFILE *f);

πŸ’œ DESCRIPTION πŸ’œ

so like, lowkey she's the same vibe as pack_putc, except instead of one lil byte she writes a whole 32-bit long to a file 🫢 and the way she does it is with Intel byte ordering β€” aka least significant byte first, aka little-endian 🌈 iykyk


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, no cap πŸ’€ go forth and write your little-endian longs, main character πŸ’…

later bestie πŸ¦‹ this was Allegro, version 4.4.3 β€” mwah πŸ’–βœ¨