1
0
Files
2022-09-29 17:59:04 +03:00

25 lines
579 B
C

/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)sccs:lib/mpwlib/zero.c 6.2"
/*
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);
}