git: 9front

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