mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-14 22:04:43 +00:00
18 lines
179 B
C
18 lines
179 B
C
/*
|
|
*
|
|
* (c) 2004,2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
*
|
|
*/
|
|
|
|
int strlen(const char* s)
|
|
{
|
|
int len;
|
|
|
|
if (!s) return 0;
|
|
|
|
len = 0;
|
|
while (*s++) len++;
|
|
|
|
return len;
|
|
}
|