home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
libc
/
strings
/
strlen.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-10-19
|
218 b
|
17 lines
/*
* strlen - length of string (not including NUL)
*/
SIZET
strlen(s)
CONST char *s;
{
register CONST char *scan;
register SIZET count;
count = 0;
scan = s;
while (*scan++ != '\0')
count++;
return(count);
}