---
name: "al_get_file_userdata"
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_get_file_userdata"
---

# al\_get\_file\_userdata(3)

Allegro 5 API

## NAME

al\_get\_file\_userdata - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void *al_get_file_userdata(ALLEGRO_FILE *f)
  ```

## DESCRIPTION

Returns a pointer to the custom userdata that is attached to the file handle. This is intended to be used by functions that extend [ALLEGRO\_FILE\_INTERFACE(3)](/ALLEGRO_FILE_INTERFACE/3.md).
