git: 9front

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