shithub: purgatorio

ref: a600cca5ff367ca7e7c64a14a8e87ba376780f6d
dir: /libkern/memset.c/

View raw version
#include	<lib9.h>

void*
memset(void *ap, int c, ulong n)
{
	char *p;
	int m = (int)n;

	p = ap;
	while(m > 0) {
		*p++ = c;
		m--;
	}
	return ap;
}