home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/c/RCS/strlen,v $
- * $Date: 1996/04/19 21:26:42 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: simon $
- *
- * $Log: strlen,v $
- * Revision 1.1 1996/04/19 21:26:42 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: strlen,v 1.1 1996/04/19 21:26:42 simon Rel $";
-
- #include <string.h>
-
- size_t
- strlen (register const char *s)
-
- {
- register size_t n = 0;
-
- while (*s++)
- n++;
-
- return (n);
- }
-