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