bug fix, 4.3BSD/usr.bin/41
[unix-history] / usr / src / usr.bin / ex / bcopy.c
CommitLineData
dac571dd
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
70190965 8static char *sccsid = "@(#)bcopy.c 7.3 (Berkeley) %G%";
19d73a0e
DF
9#endif not lint
10
11/*
12 * Copyright (c) 1980 Regents of the University of California.
13 * All rights reserved. The Berkeley software License Agreement
14 * specifies the terms and conditions for redistribution.
15 */
16
17#ifndef lint
70190965 18static char sccsid[] = "@(#)bcopy.c 7.3 (Berkeley) %G%";
dac571dd
DF
19#endif not lint
20
2aa90f7d 21/* block copy from from to to, count bytes */
2aa90f7d
MH
22bcopy(from, to, count)
23#ifdef vax
24 char *from, *to;
25 int count;
26{
27
28 asm(" movc3 12(ap),*4(ap),*8(ap)");
29}
30#else
31 register char *from, *to;
32 register int count;
33{
299f2784 34 while ((count--) > 0) /* mjm */
2aa90f7d
MH
35 *to++ = *from++;
36}
37#endif