---
name: "al_ustr_new"
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_ustr_new/3alleg5"
---

# al\_ustr\_new(3alleg5)

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(3alleg5).

## SEE ALSO

al\_ustr\_new\_from\_buffer(3alleg5), al\_ustr\_newf(3alleg5), al\_ustr\_dup(3alleg5), al\_ustr\_new\_from\_utf16(3alleg5)
