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