---
name: "wcspbrk"
section: "3"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/wcspbrk"
---

# wcspbrk(3)

search a wide-character string for any of a set of wide characters

## NAME

wcspbrk - search a wide-character string for any of a set of wide characters

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <wchar.h>
```

**wchar\_t \*wcspbrk(const wchar\_t \****wcs***, const wchar\_t \****accept***);**

## DESCRIPTION

The **wcspbrk**() function is the wide-character equivalent of the [**strpbrk**(3)](/strpbrk/3.md) function. It searches for the first occurrence in the wide-character string pointed to by *wcs* of any of the characters in the wide-character string pointed to by *accept*.

## RETURN VALUE

The **wcspbrk**() function returns a pointer to the first occurrence in *wcs* of any of the characters listed in *accept*. If *wcs* contains none of these characters, NULL is returned.

## ATTRIBUTES

For an explanation of the terms used in this section, see [**attributes**(7)](/attributes/7.md).

| | | |
| --- | --- | --- |
| **Interface** | **Attribute** | **Value** |
| **wcspbrk**() | Thread safety | MT-Safe |

## STANDARDS

C11, POSIX.1-2008.

## HISTORY

POSIX.1-2001, C99.

## SEE ALSO

[**strpbrk**(3)](/strpbrk/3.md), [**wcschr**(3)](/wcschr/3.md), [**wcscspn**(3)](/wcscspn/3.md)
