shithub: scc

ref: 2e7e4ca6b9def1b7bae6b93285f6431039f9656a
dir: /src/libc/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;
}