---
name: "al_ustr_new"
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_new"
---

# al\_ustr\_new(3)

Allegro 5 API

## NAME

al\_ustr\_new - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_USTR *al_ustr_new(const char *s)
  ```

## DESCRIPTION

Create a new string containing a copy of the C-style string `s`. The string must eventually be freed with [al\_ustr\_free(3)](/al_ustr_free/3.md).

## SEE ALSO

[al\_ustr\_new\_from\_buffer(3)](/al_ustr_new_from_buffer/3.md), [al\_ustr\_newf(3)](/al_ustr_newf/3.md), [al\_ustr\_dup(3)](/al_ustr_dup/3.md), [al\_ustr\_new\_from\_utf16(3)](/al_ustr_new_from_utf16/3.md)
