git: 9front

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