home *** CD-ROM | disk | FTP | other *** search
- STRSPN(3) Library Functions STRSPN(3)
-
-
-
- NAME
- strspn - find the length of the longest intial segment
- of a string that consists of characters from a certain set.
-
- SYNOPSIS
- #include <edlib.h>
-
- int strspn(str, charset)
- char *str, *charset;
-
- DESCRIPTION
- Strspn searches the null terminated string 'str' for characters
- in the set 'charset'. The length of the longest intial string
- that consists of characters from 'charset' is returned. If all
- characters of 'str' are also members of 'charset', then the
- length of 'str' is returned. If 'charset' is null then this
- function will return a zero as none of the characters in 'str'
- could possibly be in the set.
-
- This function is also known as notstr.
-
- AUTHOR
- Daniel J. Barrett.
- barrett@cs.jhu.edu or ins_adjb@jhunix.UUCP
-
- SEE ALSO
- strcspn(3)
-
-
-
-