git: 9front

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