scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

strspn.3 (470B)


      1 .TH strspn 3
      2 .SH NAME
      3 strspn - get length of substring
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 size_t strspn(const char *s1, const char *s2)
      8 .SH DESCRIPTION
      9 The
     10 .BR strspn ()
     11 function computes the length
     12 of the maximum initial segment
     13 of string pointed to by
     14 .I s1
     15 which consists entirely of characters
     16 from the string pointed to by
     17 .IR s2 .
     18 .SH RETURN VALUE
     19 The
     20 .BR strcspn ()
     21 function shall return the length of the segment.
     22 .SH STANDARDS
     23 ISO/IEC 9899:1999 Section 7.21.5.6