---
name: "al_ustr_new_from_buffer"
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_from_buffer/3alleg5"
---

# al\_ustr\_new\_from\_buffer(3alleg5)

Allegro 5 API

## NAME

al\_ustr\_new\_from\_buffer - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_USTR *al_ustr_new_from_buffer(const char *s, size_t size)
  ```

## DESCRIPTION

Create a new string containing a copy of the buffer pointed to by `s` of the given `size` in bytes. The string must eventually be freed with al\_ustr\_free(3alleg5).

## SEE ALSO

al\_ustr\_new(3alleg5)
