git: 9front

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