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