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