source: trunk/libs/newlib/src/newlib/libc/string/bcopy.c @ 567

Last change on this file since 567 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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