chars and char externals

About Monkey 2 Forums Monkey 2 Programming Help chars and char externals

This topic contains 1 reply, has 2 voices, and was last updated by  Mark Sibly 2 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4389

    abakobo
    Participant

    If I understand well chars are some kind of 16bit int in Monkey2..
    So a String is just a Struct containing an Array of Ints and some methods and properties?

    How can I manage an external function that require a Char as parameter?

    #4391

    Mark Sibly
    Keymaster

    Use a libc.char_t for the param type, eg: SomeFunc( chr:libc.char_t ).

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

You must be logged in to reply to this topic.