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