OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [string/] [bcopy.c] - Blame information for rev 171

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/*
2
FUNCTION
3
        <<bcopy>>---copy memory regions
4
 
5
ANSI_SYNOPSIS
6
        #include <string.h>
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 <<memmove>>.
21
 
22
PORTABILITY
23
<<bcopy>> requires no supporting OS subroutines.
24
 
25
QUICKREF
26
        bcopy - pure
27
*/
28
 
29
#include <string.h>
30
 
31
void
32
_DEFUN (bcopy, (b1, b2, length),
33
        _CONST void *b1 _AND
34
        void *b2 _AND
35
        size_t length)
36
{
37
  memmove (b2, b1, length);
38
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.