Date: Sat, 1 Nov 1997 22:09:34 +0500 (GMT) From: Guillermo Porras To: john kismul cc: djgpp AT delorie DOT com Subject: Re: Beginners Question In-Reply-To: <3458C5E6.47D7@bergen.mail.telia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 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) |/ ______!\ ___-_-_-