git: 9front

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