1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61193Sbostic.\" The Regents of the University of California. All rights reserved. 341982Sbostic.\" 441982Sbostic.\" This code is derived from software contributed to Berkeley by 550327Sbostic.\" Chris Torek and the American National Standards Committee X3, 650327Sbostic.\" on Information Processing Systems. 750327Sbostic.\" 841982Sbostic.\" %sccs.include.redist.man% 941982Sbostic.\" 10*61193Sbostic.\" @(#)strspn.3 8.1 (Berkeley) 06/04/93 1141982Sbostic.\" 1248350Scael.Dd 1348350Scael.Dt STRSPN 3 1448350Scael.Os 1548350Scael.Sh NAME 1648350Scael.Nm strspn 1748350Scael.Nd span a string 1848350Scael.Sh SYNOPSIS 1948350Scael.Fd #include <string.h> 2048350Scael.Ft size_t 2148350Scael.Fn strspn "const char *s" "const char *charset" 2248350Scael.Sh DESCRIPTION 2348350ScaelThe 2450777Scael.Fn strcspn 2548350Scaelfunction 2641982Sbosticspans the initial part of the null-terminated string 2748350Scael.Fa s 2841982Sbosticas long as the characters from 2948350Scael.Fa s 3041982Sbosticoccur in string 3148350Scael.Fa charset . 3248350Scael.Sh RETURN VALUES 3348350ScaelThe 3448350Scael.Fn strspn 3548350Scaelfunction 3641982Sbosticreturns the number of characters spanned. 3748350Scael.Sh SEE ALSO 3848350Scael.Xr index 3 , 3948350Scael.Xr memchr 3 , 4048350Scael.Xr rindex 3 , 4148350Scael.Xr strchr 3 , 4248350Scael.Xr strcspn 3 , 4348350Scael.Xr strpbrk 3 , 4448350Scael.Xr strrchr 3 , 4548350Scael.Xr strsep 3 , 4648350Scael.Xr strstr 3 , 4748350Scael.Xr strtok 3 4848350Scael.Sh STANDARDS 4948350ScaelThe 5048350Scael.Fn strspn 5148350Scaelfunction 5248350Scaelconforms to 5348350Scael.St -ansiC . 54