---
name: "al_ustr_dup"
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_ustr_dup"
---

# al\_ustr\_dup(3)

Allegro 5 API

## NAME

al\_ustr\_dup - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_USTR *al_ustr_dup(const ALLEGRO_USTR *us)
  ```

## DESCRIPTION

Return a duplicate copy of a string. The new string will need to be freed with [al\_ustr\_free(3)](/al_ustr_free/3.md).

## SEE ALSO

[al\_ustr\_dup\_substr(3)](/al_ustr_dup_substr/3.md), [al\_ustr\_free(3)](/al_ustr_free/3.md)
