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

# al\_ftell(3alleg5)

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(3alleg5), al\_get\_errno(3alleg5)
