shithub: scc

ref: 4c09eaec1c1f81e175b6e8b6266e8a2c9aa7afaa
dir: /lib/c/memset.c/

View raw version
#include <string.h>
#undef memset

void *
memset(void *s, int c, size_t n)
{
	char *m = s;

	while (n-- > 0)
		*m++ = c;
	return s;
}