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