git: 9front

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