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