Update to handle fragments correctly (set bsize to be fragment
[unix-history] / usr / src / sys / stand / bcopy.c
... / ...
CommitLineData
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) %G%
8 */
9
10/*
11 * This is designed to be small, not fast.
12 */
13void
14bcopy(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}