shithub: riscv

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