strlen.c (126B)
1 #include <string.h> 2 #undef strlen 3 4 size_t 5 strlen(const char *s) 6 { 7 const char *t; 8 9 for (t = s; *t; ++t) 10 ; 11 return t - s; 12 }
![]() | 9osExperimental kernel using plan9 ideas for embedded device |
git clone git://git.simple-cc.org/9os | |
Log | Files | Refs | README | LICENSE |