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