git: 9front

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