Magellan Linux

Contents of /tags/mkinitrd-6_2_0/klibc/usr/klibc/strlen.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 996 - (show annotations) (download)
Sun May 30 11:54:28 2010 UTC (14 years, 1 month ago) by niro
File MIME type: text/plain
File size: 132 byte(s)
tagged 'mkinitrd-6_2_0'
1 /*
2 * strlen()
3 */
4
5 #include <string.h>
6
7 size_t strlen(const char *s)
8 {
9 const char *ss = s;
10 while (*ss)
11 ss++;
12 return ss - s;
13 }