linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* memory address represented as a string
@ 2009-07-26  7:39 Saurabh Sehgal
  2009-07-26  7:59 ` Aneesh Bhasin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Saurabh Sehgal @ 2009-07-26  7:39 UTC (permalink / raw)
  To: linux-c-programming

Hi all,

I had a quick question:

Let's say I design a function with the signature:

void * foo( char * addr ) ; ,

where addr is a string that represents a valid memory address  ...
so the way someone can call this function is ...

char * addr = "0xae456778" // assume this is a valid memory address on
the machine
foo( addr ) ;

Is it possible to take this address in string form, and assign it to
an actual pointer of void * type ?
I want the function "foo" to return a pointer pointing to the memory
location as indicated
by the string passed in.

Thank you !

Saurabh

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-28 10:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-26  7:39 memory address represented as a string Saurabh Sehgal
2009-07-26  7:59 ` Aneesh Bhasin
2009-07-26  8:06   ` Manish Katiyar
     [not found] ` <b21328ed0907260114w547eb3fax61927111cdcf9d3c@mail.gmail.com>
2009-07-26  8:26   ` Saurabh Sehgal
2009-07-28 10:09     ` Rahul K Patel
2009-07-26 16:23 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).