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