machine/param.h is gone
[unix-history] / usr / src / lib / libc / string / memcpy.c
CommitLineData
4d35541d
RE
1/*
2 * Copyright (c) 1985 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7/*
8 * Sys5 compat routine
9 */
10
11#ifndef lint
12static char sccsid[] = "@(#)memcpy.c 5.1 (Berkeley) 85/08/05";
13#endif
14
15char *
16memcpy(t, f, n)
17 register char *t, *f;
18 register n;
19{
20 register char *p = t;
21
22 while (--n >= 0)
23 *t++ = *f++;
24
25 return (p);
26}