xref: /csrg-svn/lib/libc/string/strcspn.3 (revision 61193)
1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993
2*61193Sbostic.\"	The Regents of the University of California.  All rights reserved.
341974Sbostic.\"
441974Sbostic.\" This code is derived from software contributed to Berkeley by
550323Sbostic.\" Chris Torek and the American National Standards Committee X3,
650323Sbostic.\" on Information Processing Systems.
750323Sbostic.\"
841974Sbostic.\" %sccs.include.redist.man%
941974Sbostic.\"
10*61193Sbostic.\"     @(#)strcspn.3	8.1 (Berkeley) 06/04/93
1141974Sbostic.\"
1248350Scael.Dd
1348350Scael.Dt STRCSPN 3
1448350Scael.Os
1548350Scael.Sh NAME
1648350Scael.Nm strcspn
1748350Scael.Nd span the complement of a string
1848350Scael.Sh SYNOPSIS
1948350Scael.Fd #include <string.h>
2048350Scael.Ft size_t
2148350Scael.Fn strcspn "const char *s" "const char *charset"
2248350Scael.Sh DESCRIPTION
2348350ScaelThe
2448350Scael.Fn strcspn
2548350Scaelfunction
2641974Sbosticspans the initial part of the null-terminated string
2748350Scael.Fa s
2841974Sbosticas long as the characters from
2948350Scael.Fa s
3041974Sbosticdo not occur in string
3148350Scael.Fa charset
3248350Scael(it
3341974Sbosticspans the
3448350Scael.Em complement
3541974Sbosticof
3648350Scael.Fa charset ) .
3748350Scael.Sh RETURN VALUES
3848350ScaelThe
3948350Scael.Fn strcspn
4048350Scaelfunction
4141974Sbosticreturns the number of characters spanned.
4248350Scael.Sh SEE ALSO
4348350Scael.Xr index 3 ,
4448350Scael.Xr memchr 3 ,
4548350Scael.Xr rindex 3 ,
4648350Scael.Xr strchr 3 ,
4748350Scael.Xr strpbrk 3 ,
4848350Scael.Xr strrchr 3 ,
4948350Scael.Xr strsep 3 ,
5048350Scael.Xr strspn 3 ,
5148350Scael.Xr strstr 3 ,
5248350Scael.Xr strtok 3
5348350Scael.Sh STANDARDS
5448350ScaelThe
5548350Scael.Fn strcspn
5648350Scaelfunction
5748350Scaelconforms to
5848350Scael.St -ansiC .
59