shithub: riscv

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