Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6557 serge 1
/*
2
FUNCTION
3
	<>---copy memory regions
4
 
5
ANSI_SYNOPSIS
6
	#include 
7
	void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
8
 
9
TRAD_SYNOPSIS
10
	void bcopy(<[in]>, <[out]>, <[n]>
11
	const void *<[in]>;
12
	void *<[out]>;
13
	size_t <[n]>;
14
 
15
DESCRIPTION
16
	This function copies <[n]> bytes from the memory region
17
	pointed to by <[in]> to the memory region pointed to by
18
	<[out]>.
19
 
20
	This function is implemented in term of <>.
21
 
22
PORTABILITY
23
<> requires no supporting OS subroutines.
24
 
25
QUICKREF
26
	bcopy - pure
27
*/
28
 
29
#include 
30
#include 
31
 
32
void
33
_DEFUN (bcopy, (b1, b2, length),
34
	_CONST void *b1 _AND
35
	void *b2 _AND
36
	size_t length)
37
{
38
  memmove (b2, b1, length);
39
}