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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [string/] [bcopy.c] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1010 ivang
/*
2
FUNCTION
3
        <<bcopy>>---copy memory regions
4
 
5
ANSI_SYNOPSIS
6
        #include <string.h>
7
        void bcopy(const char *<[in]>, char  *<[out]>, size_t <[n]>);
8
 
9
TRAD_SYNOPSIS
10
        void bcopy(<[in]>, <[out]>, <[n]>
11
        char *<[in]>;
12
        char *<[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 char *b1 _AND
34
        char *b2 _AND
35
        size_t length)
36
{
37
  memmove ((_PTR) b2, (_PTR) b1, length);
38
}

powered by: WebSVN 2.1.0

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