shithub: scc

ref: cfa8ebf26de75bc6c13ba4a872e1c9e4f12de3c4
dir: /src/libc/string/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;
}