ref: 95d41e8ff4fb5a282e7cf55c4fa82eeb1950eb63 dir: /sys/src/libc/port/strlen.c/
#include <u.h> #include <libc.h> long strlen(char *s) { return strchr(s, 0) - s; }