---
name: "al_ustr_append"
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_append/3alleg5"
---

# al\_ustr\_append(3alleg5)

Allegro 5 API

## NAME

al\_ustr\_append - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_ustr_append(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
  ```

## DESCRIPTION

Append `us2` to the end of `us1`.

Returns true on success, false on error.

This function can be used to append an arbitrary buffer:

-

  ```
    ALLEGRO_USTR_INFO info;
    al_ustr_append(us, al_ref_buffer(&info, buf, size));
  ```

## SEE ALSO

al\_ustr\_append\_cstr(3alleg5), al\_ustr\_append\_chr(3alleg5), al\_ustr\_appendf(3alleg5), al\_ustr\_vappendf(3alleg5)
