git: 9front

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