EMILE/libunix/strlen.c
2006-09-15 14:55:39 +00:00

18 lines
175 B
C

/*
*
* (c) 2004,2005 Laurent Vivier <Laurent@lvivier.info>
*
*/
int strlen(const char* s)
{
int len;
if (!s) return 0;
len = 0;
while (*s++) len++;
return len;
}