---
name: "ustrpbrk"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ustrpbrk"
---

# ustrpbrk(3alleg)

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**(3alleg)](/uconvert/3alleg.md), [**ustrchr**(3alleg)](/ustrchr/3alleg.md), [**ustrrchr**(3alleg)](/ustrrchr/3alleg.md), [**ustrstr**(3alleg)](/ustrstr/3alleg.md), [**ustrtok**(3alleg)](/ustrtok/3alleg.md)
