home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene Storm
/
Scene Storm - Volume 1.iso
/
coding
/
c
/
pdc
/
libsrc
/
stringlib
/
strlen.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-04-07
|
240 b
|
20 lines
/*
* strlen - length of string (not including NUL)
*/
#include "config.h"
SIZET
strlen(s)
CONST char *s;
{
register CONST char *scan;
register SIZET count;
count = 0;
scan = s;
while (*scan++ != '\0')
count++;
return(count);
}