.TH strcspn() "" "" "String Function (libc)"
.PC "Return length a string excludes characters in another"
.B "#include <string.h>"
\fBunsigned int strcspn(\fIstring1\^\fB, \fIstring2\^\fB)\fR
\fBchar *\fIstring1\^\fB, *\fIstring2\^\fB;\fR
.PP
.II "string, comparison"
.II "compare strings"
.B strcspn()
compares
.I string1
with
.IR string2 .
It then returns the length, in characters, for which
.I string1
consists of characters \fInot\fR found in
.IR string2 .
.SH "See Also"
.Xr "libc," libc
.Xr "string.h" string.h
.br
\*(AS, \(sc7.11.5.3
.br
\*(PX Standard, \(sc8.1
