sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * FUNCTION sl@0: * <<memcpy>>---copy memory regions sl@0: * ANSI_SYNOPSIS sl@0: * #include <string.h> sl@0: * void* memcpy(void *<[out]>, const void *<[in]>, size_t <[n]>); sl@0: * This function copies <[n]> bytes from the memory region sl@0: * pointed to by <[src]> to the memory region pointed to by sl@0: * <[dest]>. sl@0: * If the regions overlap, the behavior is undefined. sl@0: * RETURNS sl@0: * <<memcpy>> A pointer to a location length bytes beyond sl@0: * dest (i.e. the location dest+length). sl@0: * PORTABILITY sl@0: * <<memcpy>> is ANSI C. sl@0: * <<memcpy>> requires no supporting OS subroutines. sl@0: * QUICKREF sl@0: * memcpy ansi pure sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #include <string.h> sl@0: #include <stddef.h> sl@0: sl@0: #ifndef __GCC32__ sl@0: #undef memcpy sl@0: #endif sl@0: sl@0: IMPORT_C void* memcpy(void* aTrg, const void* aSrc, unsigned int aLength); sl@0: sl@0: EXPORT_C void* _e32memcpy (void* dest, const void* src, size_t length) sl@0: { sl@0: return (char*)memcpy(dest, src, length); sl@0: } sl@0: