---
name: "exists"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/exists"
---

# exists(3alleg)

Shortcut version of file\_exists() for normal files. Allegro game programming library.

## NAME

exists - Shortcut version of file\_exists() for normal files. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int exists(const char \*filename);**

## DESCRIPTION

Shortcut version of file\_exists(), which checks for normal files, which  may have the archive or read-only bits set, but are not hidden,  directories, system files, etc.

## RETURN VALUE

Returns non-zero if the file exists, or zero if it doesn't.

## SEE ALSO

[**file\_exists**(3alleg)](/file_exists/3alleg.md), [**file\_size\_ex**(3alleg)](/file_size_ex/3alleg.md), [**file\_time**(3alleg)](/file_time/3alleg.md)
