shithub: scc

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