/********************************************************************** * Copyright (c) Digital Equipment Corporation 1984, 1985, 1986. * * All Rights Reserved. * * Reference "/usr/src/COPYRIGHT" for applicable restrictions. * **********************************************************************/ /* SCCSID: @(#)memset.c 3.0 4/22/86 */ /* (System 5) 1.1 */ /*LINTLIBRARY*/ /* * Set an array of n chars starting at sp to the character c. * Return sp. */ char * memset(sp, c, n) register char *sp, c; register int n; { register char *sp0 = sp; while (--n >= 0) *sp++ = c; return (sp0); }