scc

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

strspn.3 (469B)


      1 .TH strspn 3
      2 .SH NAME
      3 strspn - compute the length of the initial segment containing only given characters
      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 calculates the length of the longest prefix of the string at
     12 .I s1
     13 that consists entirely of characters found in the string at
     14 .IR s2 .
     15 .SH RETURN VALUE
     16 The length of the prefix is returned.
     17 .SH STANDARDS
     18 ISO/IEC 9899:1999 Section 7.21.5.6