---
name: "is_relative_filename"
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/is_relative_filename"
---

# is\_relative\_filename(3alleg)

Returns TRUE if the filename is relative. Allegro game programming library.

## NAME

is\_relative\_filename - Returns TRUE if the filename is relative. Allegro game programming library.

## SYNOPSIS

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

**int is\_relative\_filename(const char \*filename);**

## DESCRIPTION

Returns TRUE if the filename is relative or FALSE if it is absolute. Note that an absolute filename under DOS (with a device separator) will be considered as relative under Unix, because there absolute paths always start with a slash.

## SEE ALSO

[**make\_absolute\_filename**(3alleg)](/make_absolute_filename/3alleg.md), [**make\_relative\_filename**(3alleg)](/make_relative_filename/3alleg.md)
