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