git: 9front

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