---
name: "al_fputc"
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_fputc"
---

# al\_fputc(3)

Allegro 5 API

## NAME

al\_fputc - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  int al_fputc(ALLEGRO_FILE *f, int c)
  ```

## DESCRIPTION

Write a single byte to the given file. The byte written is the value of c cast to an unsigned char.

Parameters:

- •

  c - byte value to write

- •

  f - file to write to

Returns the written byte (cast back to an int) on success, or EOF on error.
