scc

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

strcspn.3 (463B)


      1 .TH strcspn 3
      2 .SH NAME
      3 strcspn - compute the length of the initial segment not containing given characters
      4 .SH SYNOPSIS
      5 #include <string.h>
      6 
      7 size_t strcspn(const char *s1, const char *s2)
      8 .SH DESCRIPTION
      9 The
     10 .BR strcspn ()
     11 function calculates the length of the longest prefix of the string at
     12 .I s1
     13 that contains no 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.3