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