---
name: "al_ustr_has_prefix_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_has_prefix_cstr"
---

# al\_ustr\_has\_prefix\_cstr(3)

Allegro 5 API

## NAME

al\_ustr\_has\_prefix\_cstr - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

Returns true iff `us1` begins with `s2`.

## SEE ALSO

[al\_ustr\_has\_prefix(3)](/al_ustr_has_prefix/3.md), [al\_ustr\_has\_suffix\_cstr(3)](/al_ustr_has_suffix_cstr/3.md)
