blob: 22a7f1bfe86c1ffa3e7d10e4af90239d56a40123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
FUNCTION
<<bcopy>>---copy memory regions
SYNOPSIS
#include <strings.h>
void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
DESCRIPTION
This function copies <[n]> bytes from the memory region
pointed to by <[in]> to the memory region pointed to by
<[out]>.
This function is implemented in term of <<memmove>>.
PORTABILITY
<<bcopy>> requires no supporting OS subroutines.
QUICKREF
bcopy - pure
*/
#include <string.h>
#include <strings.h>
void
_DEFUN (bcopy, (b1, b2, length),
_CONST void *b1 _AND
void *b2 _AND
size_t length)
{
memmove (b2, b1, length);
}
|