al_fwrite(3)

al_fwrite3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
size_t al_fwrite(ALLEGRO_FILE *f, const void *ptr, size_t size)

Overview

Write `size' bytes from the buffer pointed to by `ptr' into the given file.

Returns the number of bytes actually written. If an error occurs, the return value is a short byte count (or zero).

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.