C pointer stuff

About Monkey 2 Forums Monkey 2 Programming Help C pointer stuff

This topic contains 2 replies, has 2 voices, and was last updated by  Hezkore 2 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7107

    Hezkore
    Participant

    How do I access the values of a c pointer?

    I’ve imported this code: http://wiki.mumble.info/wiki/Link
    And I’m trying to access the lm pointer.

    #7109

    abakobo
    Participant

    To dereference a pointer use [0]

    [/crayon]

    You’ll see the value of i

    Monkey pointers have nothing special, they are just c++ pointers. Function pointers(function values) are a bit different but can be used just like c function pointers.

    #7124

    Hezkore
    Participant

    I managed to get it working!
    Big thanks @abakobo

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.