---
name: "al_fwrite16le"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_fwrite16le"
---

# al\_fwrite16le(3)

Allegro 5 API

## NAME

al\_fwrite16le - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  size_t al_fwrite16le(ALLEGRO_FILE *f, int16_t w)
  ```

## DESCRIPTION

Writes a 16-bit word in little-endian format (LSB first).

Returns the number of bytes written: 2 on success, less than 2 on an error.

## SEE ALSO

[al\_fwrite16be(3)](/al_fwrite16be/3.md)
