---
name: "al_ustr_find_chr"
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_find_chr/3alleg5"
---

# al\_ustr\_find\_chr(3alleg5)

Allegro 5 API

## NAME

al\_ustr\_find\_chr - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  int al_ustr_find_chr(const ALLEGRO_USTR *us, int start_pos, int32_t c)
  ```

## DESCRIPTION

Search for the encoding of code point `c` in `us` from byte offset `start_pos` (inclusive).

Returns the position where it is found or -1 if it is not found.

## SEE ALSO

al\_ustr\_rfind\_chr(3alleg5)
