git: 9front

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