xref: /original-bsd/sys/stand/bcopy.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  *	@(#)bcopy.c	8.1 (Berkeley) 06/11/93
8  */
9 
10 /*
11  * This is designed to be small, not fast.
12  */
13 void
14 bcopy(s1, s2, n)
15 	const void *s1;
16 	void *s2;
17 	unsigned n;
18 {
19 	register const char *f = s1;
20 	register char *t = s2;
21 
22 	while (n != 0) {
23 		*t++ = *f++;
24 		n--;
25 	}
26 }
27