git: 9front

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