git: 9front

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