140865Sbostic /*- 2*62091Sbostic * Copyright (c) 1979, 1993 3*62091Sbostic * The Regents of the University of California. All rights reserved. 440865Sbostic * 540865Sbostic * %sccs.include.redist.c% 640865Sbostic */ 72985Smckusick 840865Sbostic #ifndef lint 9*62091Sbostic static char sccsid[] = "@(#)blkcpy.c 8.1 (Berkeley) 06/06/93"; 1040865Sbostic #endif /* not lint */ 112985Smckusick blkcpy(from,to,siz)129134Smckusickblkcpy(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