mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 19:54:38 +00:00
12 lines
106 B
C
12 lines
106 B
C
|
int strlen(const char* s)
|
||
|
{
|
||
|
int len;
|
||
|
|
||
|
if (!s) return 0;
|
||
|
|
||
|
len = 0;
|
||
|
while (*s++) len++;
|
||
|
|
||
|
return len;
|
||
|
}
|