xref: /original-bsd/lib/libc/string/strpbrk.3 (revision c3e32dec)
1.\" Copyright (c) 1990, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)strpbrk.3	8.1 (Berkeley) 06/04/93
11.\"
12.Dd
13.Dt STRPBRK 3
14.Os
15.Sh NAME
16.Nm strpbrk
17.Nd locate multiple characters in string
18.Sh SYNOPSIS
19.Fd #include <string.h>
20.Ft char *
21.Fn strpbrk "const char *s" "const char *charset"
22.Sh DESCRIPTION
23The
24.Fn strpbrk
25function
26locates in the null-terminated string
27.Fa s
28the first occurrence of any character in the string
29.Fa charset
30and returns a pointer to this character.
31If no characters from
32.Fa charset
33occur anywhere in
34.Fa s
35.Fn strpbrk
36returns NULL.
37.Sh SEE ALSO
38.Xr index 3 ,
39.Xr memchr 3 ,
40.Xr rindex 3 ,
41.Xr strchr 3 ,
42.Xr strcspn 3 ,
43.Xr strrchr 3 ,
44.Xr strsep 3 ,
45.Xr strspn 3 ,
46.Xr strstr 3 ,
47.Xr strtok 3
48.Sh STANDARDS
49The
50.Fn strpbrk
51function
52conforms to
53.St -ansiC .
54