shithub: scc

ref: 44cc5010e56094acc7cf2a042135c0cd4ca27323
dir: /lib/c/src/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;
}