*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> strspn (3)              
Title
Content
Arch
Section
 

STRSPN(3)

Contents


NAME    [Toc]    [Back]

       strspn, strcspn - search a string for a set of characters

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       size_t strspn(const char *s, const char *accept);

       size_t strcspn(const char *s, const char *reject);

DESCRIPTION    [Toc]    [Back]

       The strspn() function calculates the length of the initial segment of s
       which consists entirely of characters in accept.

       The strcspn() function calculates the length of the initial segment  of
       s which consists entirely of characters not in reject.

RETURN VALUE    [Toc]    [Back]

       The  strspn()  function returns the number of characters in the initial
       segment of s which consist only of characters from accept.

       The strcspn() function returns the number of characters in the  initial
       segment of s which are not in the string reject.

CONFORMING TO    [Toc]    [Back]

       SVID 3, POSIX, BSD 4.3, ISO 9899

SEE ALSO    [Toc]    [Back]

      
      
       index(3),   memchr(3),  rindex(3),  strchr(3),  strpbrk(3),  strsep(3),
       strstr(3), strtok(3)



				  1993-04-12			     STRSPN(3)
[ Back ]
 Similar pages
Name OS Title
strpbrk Linux search a string for any of a set of characters
wcspbrk Linux search a wide-character string for any of a set of wide characters
wcscspn Linux search a wide-character string for any of a set of wide characters
rindex Tru64 Search for character in string
strrchr Tru64 Search for character in string
strchr Tru64 Search for character in string
index Tru64 Search for character in string
verify IRIX Verifies that a set of characters contains all characters in a string
bm_comp OpenBSD Boyer-Moore string search
bm NetBSD Boyer-Moore string search
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service