---
name: "ustrrchr"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ustrrchr/3alleg4"
---

# ustrrchr(3alleg4)

Finds the last occurrence of a character in a string. Allegro game programming library.

## NAME

ustrrchr - Finds the last occurrence of a character in a string. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**char \*ustrrchr(const char \*s, int c);**

## DESCRIPTION

Finds the last occurrence of the character \`c' in the string \`s'. Example:

```
   char *p = ustrrchr("one,two,three,four", ',');
```

## RETURN VALUE

Returns a pointer for the last occurrence of \`c' in \`s', or NULL if no match was found.

## SEE ALSO

**uconvert**(3alleg4), **ustrchr**(3alleg4), **ustrstr**(3alleg4), **ustrpbrk**(3alleg4), **ustrtok**(3alleg4)
