---
name: "pack_mgetw"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pack_mgetw/3alleg4"
---

# pack\_mgetw(3alleg4)

Like pack\_getc(), but using 16-bit Motorola byte ordering words. Allegro game programming library.

## NAME

pack\_mgetw - Like pack\_getc(), but using 16-bit Motorola byte ordering words. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int pack\_mgetw(PACKFILE \*f);**

## DESCRIPTION

Like pack\_getc, but reads a 16-bit word from a file, using Motorola byte ordering (most significant byte first, a.k.a. big-endian).

## SEE ALSO

**pack\_getc**(3alleg4)
