1*63270Smckusick /*- 2*63270Smckusick * Copyright (c) 1993 The Regents of the University of California. 3*63270Smckusick * All rights reserved. 4*63270Smckusick * 5*63270Smckusick * %sccs.include.redist.c% 6*63270Smckusick * 7*63270Smckusick * @(#)bcopy.c 7.1 (Berkeley) 06/11/93 8*63270Smckusick */ 9*63270Smckusick 10*63270Smckusick /* 11*63270Smckusick * This is designed to be small, not fast. 12*63270Smckusick */ 13*63270Smckusick void 14*63270Smckusick bcopy(s1, s2, n) 15*63270Smckusick const void *s1; 16*63270Smckusick void *s2; 17*63270Smckusick unsigned n; 18*63270Smckusick { 19*63270Smckusick register const char *f = s1; 20*63270Smckusick register char *t = s2; 21*63270Smckusick 22*63270Smckusick while (n != 0) { 23*63270Smckusick *t++ = *f++; 24*63270Smckusick n--; 25*63270Smckusick } 26*63270Smckusick } 27