git: 9front

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