git: 9front

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