git: 9front

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