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