Files
retrobsd/src/libc/gen/bcopy-disabled.c
T
2014-04-09 14:27:18 +01:00

28 lines
545 B
C

/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/*
* bcopy -- vax movc3 instruction
*/
bcopy(src, dst, length)
register char *src, *dst;
register unsigned int length;
{
if (length && src != dst)
if (dst < src)
do
*dst++ = *src++;
while (--length);
else { /* copy backwards */
src += length;
dst += length;
do
*--dst = *--src;
while (--length);
}
return(0);
}