non-AT&T implementations of frexp.c in machine/gen/frexp.c
[unix-history] / usr / src / lib / libc / string / memcpy.c
CommitLineData
2371b7bc
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
317e5946
KB
3 * All rights reserved.
4 *
2371b7bc
KB
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * %sccs.include.redist.c%
4d35541d
RE
9 */
10
2ce81398 11#if defined(LIBC_SCCS) && !defined(lint)
db64e867 12static char sccsid[] = "@(#)memcpy.c 5.6 (Berkeley) %G%";
317e5946 13#endif /* LIBC_SCCS and not lint */
4d35541d 14
2371b7bc
KB
15#include <string.h>
16#include <sys/stdc.h>
4d35541d 17
2371b7bc
KB
18/*
19 * Copy a block of memory.
20 */
21void *
22memcpy(dst, src, n)
23 void *dst;
24 const void *src;
25 size_t n;
26{
db64e867
KB
27 bcopy((const char *)src, (char *)dst, n);
28 return(dst);
4d35541d 29}