Files
seta75D 2e8a93c394 Init
2021-10-11 18:20:23 -03:00

21 lines
335 B
C

#ifndef lint
static char sccsid[] = "@(#)memset.c 1.1 92/07/30 SMI"; /* from S5R2 1.1 */
#endif
/*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);
}