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.

Parameters.

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