git: 9front

ref: 10bd9627a5dae058982c4e321ede8830e36ca1f6
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;
}