/* ============================================================================= memset.c -- fill memory Version 1 -- 1987-06-12 Set an array of n chars starting at vp to the character c. Return vp. ============================================================================= */ #include "ram.h" void *memset(void *vp, int8_t c, int16_t n) { int8_t *cp = vp; while (--n >= 0) *cp++ = c; return(vp); }