home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_05
/
2n05063a
< prev
next >
Wrap
Text File
|
1991-03-27
|
206b
|
17 lines
/*
* a portable Standard C implementation of strlen using
* size_t
*/
size_t strlen(const char s[])
{
size_t i = 0;
while (s[i] != '\0')
++i;
return i;
}