shithub: scc

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