---
name: "al_fputc"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_fputc/3alleg5"
---

# al\_fputc(3alleg5)

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.
