Commit | Line | Data |
---|---|---|
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 | |
5a6c967e | 8 | static char *sccsid = "@(#)bcopy.c 7.4 (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 | |
5a6c967e | 18 | static char sccsid[] = "@(#)bcopy.c 7.4 (Berkeley) %G%"; |
dac571dd DF |
19 | #endif not lint |
20 | ||
2aa90f7d | 21 | /* block copy from from to to, count bytes */ |
2aa90f7d MH |
22 | bcopy(from, to, count) |
23 | #ifdef vax | |
24 | char *from, *to; | |
25 | int count; | |
26 | { | |
5a6c967e | 27 | #ifndef vms |
2aa90f7d | 28 | asm(" movc3 12(ap),*4(ap),*8(ap)"); |
5a6c967e CH |
29 | /* ARGSUSED */ |
30 | #else | |
31 | lib$movc3(&count, from, to); | |
32 | #endif | |
2aa90f7d MH |
33 | } |
34 | #else | |
35 | register char *from, *to; | |
36 | register int count; | |
37 | { | |
299f2784 | 38 | while ((count--) > 0) /* mjm */ |
2aa90f7d MH |
39 | *to++ = *from++; |
40 | } | |
41 | #endif |