1 /* $Id: clear.c,v 1.10 1994/06/24 11:06:41 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* clear - clear a block of memory, and try to do it fast.
11 /* instead of Calloc: */
16 register unsigned int n;
18 register long *q = (long *) ptr;
20 while (n >= 8*sizeof (long)) {
21 /* high-speed clear loop */
32 while (n >= sizeof (long)) {
33 /* high-speed clear loop */
38 while (n--) *ptr++ = '\0';