shithub: riscv

ref: 3fc8d1bdae10955e0b31ee1766d17367e0d0caa1
dir: /sys/src/ape/lib/ap/gen/strlen.c/

View raw version
#include <string.h>

size_t
strlen(const char *s)
{
	return strchr(s, 0) - s;
}