---
name: "al_create_path_for_directory"
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_create_path_for_directory"
---

# al\_create\_path\_for\_directory(3)

Allegro 5 API

## NAME

al\_create\_path\_for\_directory - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_PATH *al_create_path_for_directory(const char *str)
  ```

## DESCRIPTION

This is the same as [al\_create\_path(3)](/al_create_path/3.md), but interprets the passed string as a directory path. The filename component of the returned path will always be empty.

## SEE ALSO

[al\_create\_path(3)](/al_create_path/3.md), [al\_destroy\_path(3)](/al_destroy_path/3.md)
