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