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: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)bcopy.c 1.1 (Berkeley) 1/19/87";
9: #endif LIBC_SCCS and not lint
10:
11: /*
12: * bcopy -- vax movc3 instruction
13: */
14: bcopy(src, dst, length)
15: register char *src, *dst;
16: register unsigned int length;
17: {
18: if (length && src != dst)
19: if (dst < src)
20: do
21: *dst++ = *src++;
22: while (--length);
23: else { /* copy backwards */
24: src += length;
25: dst += length;
26: do
27: *--dst = *--src;
28: while (--length);
29: }
30: return(0);
31: }
Defined functions
bcopy
defined in line
14;
never used
Defined variables
sccsid
defined in line
8;
never used