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