---
name: "al_ftell"
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_ftell"
---

# al\_ftell(3)

Allegro 5 API

## NAME

al\_ftell - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  int64_t al_ftell(ALLEGRO_FILE *f)
  ```

## DESCRIPTION

Returns the current position in the given file, or -1 on error. errno is set to indicate the error.

On some platforms this function may not support large files.

## SEE ALSO

[al\_fseek(3)](/al_fseek/3.md), [al\_get\_errno(3)](/al_get_errno/3.md)
