shithub: scc

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