home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / edlib.lzh / EDLIB / MAN / STRSPN < prev    next >
Encoding:
Text File  |  1991-08-16  |  899 b   |  35 lines

  1. STRSPN(3)                  Library Functions                 STRSPN(3)
  2.  
  3.  
  4.  
  5. NAME
  6.      strspn - find the length of the longest intial segment
  7.      of a string that consists of characters from a certain set.
  8.  
  9. SYNOPSIS
  10.      #include <edlib.h>
  11.  
  12.      int strspn(str, charset)
  13.      char *str, *charset;
  14.  
  15. DESCRIPTION
  16.      Strspn searches the null terminated string 'str' for characters
  17.      in the set 'charset'. The length of the longest intial string
  18.      that consists of characters from 'charset' is returned. If all
  19.      characters of 'str' are also members of 'charset', then the
  20.      length of 'str' is returned. If 'charset' is null then this
  21.      function will return a zero as none of the characters in 'str'
  22.      could possibly be in the set.
  23.  
  24.      This function is also known as notstr.
  25.  
  26. AUTHOR
  27.      Daniel J. Barrett.
  28.      barrett@cs.jhu.edu or ins_adjb@jhunix.UUCP
  29.  
  30. SEE ALSO
  31.      strcspn(3)
  32.  
  33.  
  34.  
  35.