Kernel still needs this.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16820 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-03-16 20:29:24 +00:00
parent 3b74cca68e
commit 70e8c1e7e2
+20
View File
@@ -0,0 +1,20 @@
/*
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#include <sys/types.h>
#include <string.h>
size_t
strlen(char const *s)
{
size_t i = 0;
while (s[i]) {
i += 1;
}
return i;
}