git: 9front

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