Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / bcopy.c
blobd8bdeb57fa1d33ae164d6f26071aeaba455caece
1 /*
2 FUNCTION
3 <<bcopy>>---copy memory regions
5 SYNOPSIS
6 #include <strings.h>
7 void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
9 DESCRIPTION
10 This function copies <[n]> bytes from the memory region
11 pointed to by <[in]> to the memory region pointed to by
12 <[out]>.
14 This function is implemented in term of <<memmove>>.
16 PORTABILITY
17 <<bcopy>> requires no supporting OS subroutines.
19 QUICKREF
20 bcopy - pure
23 #include <string.h>
24 #include <strings.h>
26 void
27 bcopy (const void *b1,
28 void *b2,
29 size_t length)
31 memmove (b2, b1, length);