Mail Archives: djgpp/1997/11/01/22:13:48
On Thu, 30 Oct 1997, john kismul wrote:
> I've allocated some memory with malloc.
>
> How do I transfer data from this memory to somewhere else in memory,
> such as, someother memory I've allocated or an array.
I think it is memcpy () .
#include <string.h>
void *memcpy(void *dest, const void *src, int num);
Description
-----------
This function copies NUM bytes from SOURCE to DEST.
Return Value
------------
DEST
Example
-------
memcpy(buffer, temp_buffer, BUF_MAX);
>
>
, .|.
<@7 --O--
cc' '|`
/Y)
|/
______!\ ___-_-_-
- Raw text -