SysIII/usr/src/lib/libPW/zero.c

Compare this file to the similar file:
Show the results in this format:

static char Sccsid[]="@(#)zero	3.1";
/*
	Zero `cnt' bytes starting at the address `ptr'.
	Return `ptr'.
*/

char	*zero(p,n)
register char *p;
register int n;
{
	char *op = p;
	while (--n >= 0)
		*p++ = 0;
	return(op);
}