---
name: "pack_iputw"
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_iputw/3alleg4"
---

# pack\_iputw(3alleg4)

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

## NAME

pack\_iputw - Like pack\_putc(), but using 16-bit Intel byte ordering words. Allegro game programming library.

## SYNOPSIS

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

**int pack\_iputw(int c, PACKFILE \*f);**

## DESCRIPTION

Like pack\_putc, but writes a 16-bit word to a file, using Intel byte ordering (least significant byte first, a.k.a. little-endian).

## SEE ALSO

**pack\_putc**(3alleg4)
