Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   memcpy() function Code (http://www.go4expert.com/forums/memcpy-function-code-t1428/)

alekya.ch 19Sep2006 16:50

memcpy() function Code
Hi All,
This is alekya. I am working as software Engineer. I want the code for memcpy() function. I know the prototype and purpose but I want user code of memcpy function().

int memcpy(void *src, void *des, int size)


shabbir 19Sep2006 19:31

Re: memcpy() function Code
void * memcpy ( void * dest, const void * src, size_t num );

Copy bytes to buffer from buffer.
Copies num bytes from src buffer to memory location pointed by dest.


Destination buffer where data is copied.
Source buffer to copy from.
Number of bytes to copy.
memcpy((void*)szData, pBuffer, iSizeBufNeeded);
szData and pBuffer are pre allocated buffer where the memory copy operation is performed.

All times are GMT +5.5. The time now is 04:09.