/* ============================================================================= memset.c -- fill memory with short words Version 1 -- 1987-03-18 -- D.N. Lynx Crowe Set an array of n shorts starting at vp to the short s. Return pointer to vp. ============================================================================= */ void *memsetw(void *vp, short s, short n) { short *sp = vp; while (--n >= 0) *sp++ = s; return(vp); }