git: 9front

ref: f96edde48a39b88112600250accb0e7578ebf3db
dir: /sys/src/libc/port/strlen.c/

View raw version
#include <u.h>
#include <libc.h>

long
strlen(char *s)
{

	return strchr(s, 0) - s;
}