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

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

strspn(3)

Contents


NAME    [Toc]    [Back]

       strcspn,  strspn  -  Return  length  of initial segment of
       string

SYNOPSIS    [Toc]    [Back]

       #include <string.h>

       size_t strcspn(
               const char *s1,
               const char *s2 ); size_t strspn(
               const char *s1,
               const char *s2 );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       strcspn(), strspn():  XSH4.2

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Points to a character string being checked for an  initial
       segment.   Points  to  a  string containing a set of bytes
       that define the initial segment.

DESCRIPTION    [Toc]    [Back]

       The strspn() function computes the length of  the  maximum
       initial segment of the string pointed to by the s1 parameter,
 which consists entirely  of  bytes  from  the  string
       pointed to by the s2 parameter.

       The  strcspn()  function  computes  the byte length of the
       maximum initial segment of the string pointed to by the s1
       parameter,  which  consists entirely of bytes that are not
       from the string pointed to by the s2 parameter.

       The strspn() and strcspn() functions treat the s2  parameter
  as  a series of bytes; these functions do not treat a
       multibyte character as a  single  unit  but  rather  as  a
       series  of  separate  bytes. There are no equivalent functions
 for multibyte character strings.  The  wcsspn()  and
       wcscspn()  functions  provide  the  same functionality for
       wide character strings.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, the  strcspn(),  and  strspn()
       functions return the length of the string segment.

       [Tru64  UNIX]  On  error,  a value of -1 cast to size_t is
       returned.







SEE ALSO    [Toc]    [Back]

      
      
       Functions: string(3), wcsspn(3), wcscspn(3)

       Standards: standards(5)



                                                        strspn(3)
[ Back ]
 Similar pages
Name OS Title
wcsspn Tru64 Return the length of the initial segment
wcscspn Tru64 Return the length of the initial segment
len Tru64 return length of Fortran string
len IRIX return length of Fortran string
len IRIX return length of Fortran string
XmTextGetCenterline HP-UX Return the height (length) of a character string when the writing direction is vertical
XmStringInitContext IRIX A compound string function that allows applications to read out the content segment by segment
XmStringInitContext Tru64 A compound string function that allows applications to read out the content segment by segment
tt_initial_session HP-UX return the initial session identifier
mbsinit Tru64 Determine whether a multibyte-character string is in the initial conversion state
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service