home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gccdist / gcc-src / vms / gcclib / strings / strlen.c < prev    next >
Encoding:
Text File  |  1991-02-27  |  198 b   |  20 lines

  1. /*
  2.  *    Replacement "strlen" routine
  3.  */
  4.  
  5. /*
  6.  * Returns the number of
  7.  * non-NULL bytes in string argument.
  8.  */
  9.  
  10. strlen(s)
  11. register char *s;
  12. {
  13.     register n;
  14.  
  15.     n = 0;
  16.     while (*s++)
  17.         n++;
  18.     return(n);
  19. }
  20.