.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Sat Jul 24 17:57:50 1993 by Rik Faith (faith@cs.unc.edu)
-.TH STRSPN 3 2010-09-20 "" "Linux Programmer's Manual"
+.TH STRSPN 3 2012-05-10 "" "Linux Programmer's Manual"
.SH NAME
-strspn, strcspn \- search a string for a set of characters
+strspn, strcspn \- search a string for a set of bytes
.SH SYNOPSIS
.nf
.B #include <string.h>
.SH DESCRIPTION
The
.BR strspn ()
-function calculates the length of the initial
-segment of \fIs\fP which consists entirely of characters in
+function calculates the length (in bytes) of the initial
+segment of \fIs\fP which consists entirely of bytes in
\fIaccept\fP.
.PP
The
.BR strcspn ()
function calculates the length of the initial
-segment of \fIs\fP which consists entirely of characters not in
+segment of \fIs\fP which consists entirely of bytes not in
\fIreject\fP.
.SH "RETURN VALUE"
The
.BR strspn ()
-function returns the number of characters in
-the initial segment of \fIs\fP which consist only of characters
+function returns the number of bytes in
+the initial segment of \fIs\fP which consist only of bytes
from \fIaccept\fP.
.PP
The
.BR strcspn ()
-function returns the number of characters in
+function returns the number of bytes in
the initial segment of \fIs\fP which are not in the string
\fIreject\fP.
.SH "CONFORMING TO"