equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * FUNCTION |
|
16 * <<memcpy>>---copy memory regions |
|
17 * ANSI_SYNOPSIS |
|
18 * #include <string.h> |
|
19 * void* memcpy(void *<[out]>, const void *<[in]>, size_t <[n]>); |
|
20 * This function copies <[n]> bytes from the memory region |
|
21 * pointed to by <[src]> to the memory region pointed to by |
|
22 * <[dest]>. |
|
23 * If the regions overlap, the behavior is undefined. |
|
24 * RETURNS |
|
25 * <<memcpy>> A pointer to a location length bytes beyond |
|
26 * dest (i.e. the location dest+length). |
|
27 * PORTABILITY |
|
28 * <<memcpy>> is ANSI C. |
|
29 * <<memcpy>> requires no supporting OS subroutines. |
|
30 * QUICKREF |
|
31 * memcpy ansi pure |
|
32 * |
|
33 * |
|
34 */ |
|
35 |
|
36 |
|
37 |
|
38 #include <string.h> |
|
39 #include <stddef.h> |
|
40 |
|
41 #ifndef __GCC32__ |
|
42 #undef memcpy |
|
43 #endif |
|
44 |
|
45 IMPORT_C void* memcpy(void* aTrg, const void* aSrc, unsigned int aLength); |
|
46 |
|
47 EXPORT_C void* _e32memcpy (void* dest, const void* src, size_t length) |
|
48 { |
|
49 return (char*)memcpy(dest, src, length); |
|
50 } |
|
51 |