Print string at an address in python.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nitin thokare
    New Member
    • Nov 2011
    • 1

    #1

    Print string at an address in python.

    I'm returning a string pointer from a c file. Which is called from python using libc.get_data() ;
    (cdll library function).

    when I run libc.get_data()
    it prints just a number, an address I guess.
    I want to print the string at that address. How can I acheve that?
    Thanks in advance for any suggestions.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    You cannot access a memory address using Python code.

    Comment

    Working...