2005-11-12 21:30:19 +00:00
|
|
|
/*
|
|
|
|
*
|
2006-09-15 14:55:39 +00:00
|
|
|
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
|
2005-11-12 21:30:19 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2005-11-08 02:04:54 +00:00
|
|
|
int strlen(const char* s)
|
|
|
|
{
|
|
|
|
int len;
|
|
|
|
|
|
|
|
if (!s) return 0;
|
|
|
|
|
|
|
|
len = 0;
|
|
|
|
while (*s++) len++;
|
|
|
|
|
|
|
|
return len;
|
|
|
|
}
|