shithub: riscv

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