---
name: "al_path_ustr"
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_path_ustr/3alleg5"
---

# al\_path\_ustr(3alleg5)

Allegro 5 API

## NAME

al\_path\_ustr - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  const ALLEGRO_USTR *al_path_ustr(const ALLEGRO_PATH *path, char delim)
  ```

## DESCRIPTION

Convert a path to its string representation, i.e. optional drive, followed by directory components separated by \`delim', followed by an optional filename.

To use the current native path separator, use ALLEGRO\_NATIVE\_PATH\_SEP for \`delim'.

The returned pointer is valid only until the path is modified in any way, or until the path is destroyed. This returns an ALLEGRO\_USTR. If you need a null-terminated string instead, use al\_path\_cstr(3alleg5).

## SINCE

5\.2.3

## SEE ALSO

al\_path\_cstr(3alleg5)
