---
name: "ustrpbrk"
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/ustrpbrk/3alleg4"
---

# ustrpbrk(3alleg4)

Finds the first character that matches any in a set. Allegro game programming library.

## NAME

ustrpbrk - Finds the first character that matches any in a set. Allegro game programming library.

## SYNOPSIS

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

**char \*ustrpbrk(const char \*s, const char \*set);**

## DESCRIPTION

This function finds the first character in \`s' that matches any character in \`set'. Example:

```
   char *p = ustrpbrk("one,two-three.four", "-. ");
```

## RETURN VALUE

Returns a pointer to the first match, or NULL if none are found.

## SEE ALSO

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