---
name: "al_ustr_assign_cstr"
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_assign_cstr"
---

# al\_ustr\_assign\_cstr(3)

Allegro 5 API

## NAME

al\_ustr\_assign\_cstr - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  bool al_ustr_assign_cstr(ALLEGRO_USTR *us1, const char *s)
  ```

## DESCRIPTION

Overwrite the string `us1` with the contents of the C-style string `s`. Returns true on success, false on error.

## SEE ALSO

[al\_ustr\_assign\_substr(3)](/al_ustr_assign_substr/3.md), [al\_ustr\_assign\_cstr(3)](/al_ustr_assign_cstr/3.md)
