git: 9front

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