shithub: scc

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