home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
src
/
c
/
strlen
< prev
next >
Wrap
Text File
|
1994-03-08
|
398b
|
27 lines
#ifdef __STDC__
static char sccs_id[] = "@(#) strlen.c 1.0 " __DATE__ " HJR";
#else
static char sccs_id[] = "@(#) strlen.c 1.0 26/9/90 HJR";
#endif
/* strlen.c (c) Copyright 1990 H.Rogers */
#include <string.h>
#ifdef __STDC__
size_t
strlen (register const char *s)
#else
size_t
strlen (s)
register const char *s;
#endif
{
register size_t n = 0;
while (*s++)
n++;
return (n);
}