1*40865Sbostic /*- 2*40865Sbostic * Copyright (c) 1979 The Regents of the University of California. 3*40865Sbostic * All rights reserved. 4*40865Sbostic * 5*40865Sbostic * %sccs.include.redist.c% 6*40865Sbostic */ 72985Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)blkcpy.c 1.4 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 112985Smckusick 129134Smckusick blkcpy(from, to, siz) 132985Smckusick register char *from; 142985Smckusick register char *to; 159134Smckusick long siz; 162985Smckusick { 172985Smckusick register int size = siz; 182985Smckusick 194445Smckusic if (to < from) 202985Smckusick while(size-- > 0) 212985Smckusick *to++ = *from++; 222985Smckusick else { 232985Smckusick to += size; 242985Smckusick from += size; 252985Smckusick while(size-- > 0) 262985Smckusick *--to = *--from; 272985Smckusick } 282985Smckusick } 29