shithub: scc

ref: 8eae1d47c3534a3ce3902a8895e80dbb4f90375a
dir: /lib/c/string/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;
}