[LCP] mapping memory

DR. N. B. Venkat Nagasuri venkat_ritch at yahoo.com
Tue Nov 4 15:06:11 EST 2008


Read mmap()


Prof NB Venkateswarlu
B.Tech(SVU), M.Tech(IIT-Kanpur), Ph.D(BITS,Pilani), PDF(U of Leeds,UK)
Visit My Home at: www.ritchcenter.com/nbv

--- On Tue, 11/4/08, Tim Aslat <tim at spyderweb.com.au> wrote:

From: Tim Aslat <tim at spyderweb.com.au>
Subject: Re: [LCP] mapping memory
To: "Linux C Programming" <linuxcprogramming at lists.linux.org.au>
Date: Tuesday, November 4, 2008, 10:55 AM

In the immortal words of Mark Farnell  on 11/04/08 09:18:
> In a Linux process, I have malloc'ed a piece of memory.  Within this
> process, are there any ways to map this chunk of memory to a different
> address?

I suspect one of these will suit your purpose.

memccpy
memcpy
memmove
strcpy
strncpy

Check the appropriate man pages for details on usage

Cheers

Tim

-- 
Tim Aslat <tim at spyderweb.com.au>
Spyderweb Consulting
http://www.spyderweb.com.au
Mobile: +61 0401088479

_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20081103/85db8a52/attachment.htm 


More information about the linuxCprogramming mailing list