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