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