xref: /original-bsd/sys/stand/bzero.c (revision 3705696b)
1 /*-
2  * Copyright (c) 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)bzero.c	8.1 (Berkeley) 06/11/93
8  */
9 
10 /*
11  * This is designed to be small, not fast.
12  */
13 void
14 bzero(s1, n)
15 	void *s1;
16 	unsigned n;
17 {
18 	register char *t = s1;
19 
20 	while (n != 0) {
21 		*t++ = 0;
22 		n--;
23 	}
24 }
25