git: 9front

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