home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_10
/
1010020b
< prev
next >
Wrap
Text File
|
1992-08-12
|
227b
|
16 lines
Listing 9 -- the file strlen.c
/* strlen function */
#include <string.h>
size_t (strlen)(const char *s)
{ /* find length of s[] */
const char *sc;
for (sc = s; *sc != '\0'; ++sc)
;
return (sc - s);
}