pack_iputw(3alleg4)
π pack_iputw β the "write a lil 16-bit word" girly π
okay bestie, welcome to the Allegro manual for pack_iputw, which lives in the 3alleg4 section of the manual. it's part of the Allegro game programming library, and it's literally the cutest tiny file-writing function you'll ever meet. no cap. π
β¨ NAME β¨
pack_iputw β it's giving pack_putc(), but for 16-bit words with Intel byte ordering. yes, this is the Allegro game programming library, and yes, we're being fancy about it. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int pack_iputw(int c, PACKFILE *f);
π¦ DESCRIPTION π¦
So the way that this works is: it's just like pack_putc, but instead of one lil byte it writes a 16-bit word to a file. π«Ά
And how does it write that word, you ask? With Intel byte ordering, bestie. That means the least significant byte comes first β a.k.a. little-endian. iconic behavior fr fr. π
ngl if you were expecting big-endian, this is not that. this function said little-endian and it meant it. π
π SEE ALSO π
pack_putc(3alleg4)β the byte-sized sibling, go say hi π
that's the whole vibe check, bestie β you're all caught up. πβ¨
Allegro, version 4.4.3 β this page is pack_iputw(3alleg4), and it ate, periodt. π
π¦πΈ
π¦ 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