home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / pdc / libsrc / stringlib / strlen.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-07  |  240 b   |  20 lines

  1. /*
  2.  * strlen - length of string (not including NUL)
  3.  */
  4.  
  5. #include "config.h"
  6.  
  7. SIZET
  8. strlen(s)
  9. CONST char *s;
  10. {
  11.     register CONST char *scan;
  12.     register SIZET count;
  13.  
  14.     count = 0;
  15.     scan = s;
  16.     while (*scan++ != '\0')
  17.         count++;
  18.     return(count);
  19. }
  20.