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