os/ossrv/genericopenlibs/cstdlib/LCHAR/MEMCPY.C
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/LCHAR/MEMCPY.C	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,51 @@
     1.4 +/*
     1.5 +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* FUNCTION
    1.19 +* <<memcpy>>---copy memory regions
    1.20 +* ANSI_SYNOPSIS
    1.21 +* #include <string.h>
    1.22 +* void* memcpy(void *<[out]>, const void *<[in]>, size_t <[n]>);
    1.23 +* This function copies <[n]> bytes from the memory region
    1.24 +* pointed to by <[src]> to the memory region pointed to by
    1.25 +* <[dest]>.
    1.26 +* If the regions overlap, the behavior is undefined.
    1.27 +* RETURNS
    1.28 +* <<memcpy>> A pointer to a location length bytes beyond 
    1.29 +* dest (i.e. the location dest+length).
    1.30 +* PORTABILITY
    1.31 +* <<memcpy>> is ANSI C.
    1.32 +* <<memcpy>> requires no supporting OS subroutines.
    1.33 +* QUICKREF
    1.34 +* memcpy ansi pure
    1.35 +* 
    1.36 +*
    1.37 +*/
    1.38 +
    1.39 +
    1.40 +
    1.41 +#include <string.h>
    1.42 +#include <stddef.h>
    1.43 +
    1.44 +#ifndef __GCC32__
    1.45 +#undef  memcpy
    1.46 +#endif
    1.47 +
    1.48 +IMPORT_C void* memcpy(void* aTrg, const void* aSrc, unsigned int aLength);	
    1.49 +
    1.50 +EXPORT_C void* _e32memcpy (void* dest, const void* src, size_t length)
    1.51 +	{
    1.52 +  	return (char*)memcpy(dest, src, length);		
    1.53 +	}
    1.54 +