pack_mputw(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ pack_mputw(3) ✨

okay bestie, gather round, because we're talking about pack_mputw from the Allegro manual β€” yes, that Allegro, the game programming library πŸ’– this one lives in section 3 of the manual, so it's a library function, not a command. iykyk.


🌸 NAME 🌸

pack_mputw β€” it's giving pack_putc(), but for 16-bit Motorola byte ordering words. literally the Allegro game programming library, slaying as always πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

int pack_mputw(int c, PACKFILE *f);

πŸ¦‹ DESCRIPTION πŸ¦‹

so the vibe here is: it's like pack_putc, except instead of one lil byte it writes a whole 16-bit word out to a file. πŸ’…

and the way it orders those bytes?? Motorola byte ordering β€” meaning the most significant byte comes first, a.k.a. big-endian. no cap. big-endian girlies stay winning 🌈


πŸ’œ SEE ALSO πŸ’œ

  • pack_putc(3) β€” the byte-sized sibling, go say hi 🫢

that's the whole page, babe β€” short and iconic, main character energy fr fr ✨

and yes, before you ask: this is Allegro, version 4.4.3, so jot that down in your notes app πŸ“ sending u love from the Allegro crew, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from