my previous version was wrong; this one is right
[unix-history] / usr / src / lib / libc / string / strpbrk.3
CommitLineData
5163d9fa
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" %sccs.include.redist.man%
8.\"
9.\" @(#)strpbrk.3 5.1 (Berkeley) %G%
10.\"
11.TH STRPBRK 3 ""
12.UC 7
13.SH NAME
14strpbrk \- locate multiple characters in string
15.SH SYNOPSIS
16.nf
17.ft B
18#include <string.h>
19
20char *
21strpbrk(const char *s, const char *charset);
22.ft R
23.fi
24.SH DESCRIPTION
25.B Strpbrk
26locates in the null-terminated string
27.I s
28the first occurrence of any character in the string
29.I charset
30and returns a pointer to this character.
31If no characters from
32.I charset
33occur anywhere in
34.IR s ,
35.I strpbrk
36returns NULL.
37.SH SEE ALSO
38index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strrchr(3),
39strsep(3), strspn(3), strstr(3), strtok(3)
40.SH STANDARDS
41.B Strpbrk
42conforms to ANSI X3.159-1989 (``ANSI C'').