git: 9front

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