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