shithub: scc

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