xref: /csrg-svn/lib/libc/string/bzero.c (revision 46613)
130423Smckusick /*
230423Smckusick  * Copyright (c) 1987 Regents of the University of California.
335110Sbostic  * All rights reserved.
435110Sbostic  *
542635Sbostic  * %sccs.include.redist.c%
630423Smckusick  */
730423Smckusick 
830423Smckusick #if defined(LIBC_SCCS) && !defined(lint)
9*46613Sbostic static char sccsid[] = "@(#)bzero.c	5.7 (Berkeley) 02/24/91";
1035110Sbostic #endif /* LIBC_SCCS and not lint */
1130423Smckusick 
1242146Sbostic #include <string.h>
1342146Sbostic 
1430423Smckusick /*
1530423Smckusick  * bzero -- vax movc5 instruction
1630423Smckusick  */
1742146Sbostic void
bzero(b,length)1830423Smckusick bzero(b, length)
19*46613Sbostic 	void *b;
2042146Sbostic 	register size_t length;
2130423Smckusick {
22*46613Sbostic 	register char *p;
2330423Smckusick 
24*46613Sbostic 	for (p = b; length--;)
25*46613Sbostic 		*p++ = '\0';
2630423Smckusick }
27