fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / string / bcopy.c
blob505e39dc723b4a192f138d5c174540b9e35d97d7
1 /*
2 FUNCTION
3 <<bcopy>>---copy memory regions
5 ANSI_SYNOPSIS
6 #include <string.h>
7 void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
9 TRAD_SYNOPSIS
10 void bcopy(<[in]>, <[out]>, <[n]>
11 const void *<[in]>;
12 void *<[out]>;
13 size_t <[n]>;
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]>.
20 This function is implemented in term of <<memmove>>.
22 PORTABILITY
23 <<bcopy>> requires no supporting OS subroutines.
25 QUICKREF
26 bcopy - pure
29 #include <string.h>
31 void
32 _DEFUN (bcopy, (b1, b2, length),
33 _CONST void *b1 _AND
34 void *b2 _AND
35 size_t length)
37 memmove (b2, b1, length);