---
name: "pack_mgetw"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/pack_mgetw"
---

# pack\_mgetw(3alleg)

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**(3alleg)](/pack_getc/3alleg.md)
