git: 9front

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