1 #include <u.h> 2 #include <libc.h> 3 4 long strlen(char * s)5 strlen(char *s) 6 { 7 8 return strchr(s, 0) - s; 9 } 10