pack_mputw(3alleg4)
π pack_mputw π
okay bestie, welcome to the 3alleg4 manual section for pack_mputw, straight out of the Allegro game programming library β¨ she's a tiny little function but she serves.
πΈ NAME πΈ
pack_mputw β it's giving pack_putc(), but for 16-bit Motorola byte ordering words π part of the Allegro game programming library, no cap.
β¨ SYNOPSIS β¨
#include <allegro.h>
int pack_mputw(int c, PACKFILE *f);
likeβ¦ that's it. that's the whole vibe check π«Ά
π¦ DESCRIPTION π¦
so basically, she's exactly like pack_putc, except instead of writing one little byte, she writes a 16-bit word to a file π
and the way she does it?? Motorola byte ordering π which is also known as:
- most significant byte first
- a.k.a. big-endian
so the big important byte goes first, like a main character walking into the room first π periodt.
π₯ SEE ALSO π₯
lowkey go read pack_putc too, they're besties fr fr π«Ά
Allegro version 4.4.3 β and that's the whole page, bestie!! pack_mputw(3alleg4) said what she said, slay, mwah ππβ¨π
π¦ 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