shithub: scc

ref: 5fffd4ac0ac75d6ba1d8e978a9c618ede9e5f2e5
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;
}