git: 9front

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