shithub: scc

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