Jump to content

Load string tag from C-function?


bjarni

Recommended Posts

Hello, I've been trying to load a string from a c-function - without luck.  Made few approaches though.

One example here:

--------------------------------------------------

char arr[3][32] =
{ "String 1",
  "String 2",
  "String 3"
};

// User code ends above this comment
static void getString(unsigned short Index, volatile char* TheString, int TheStringLen)
{
    // User code starts below this comment
           TheString =arr[Index]; 
    // User code ends above this comment
}

-----------------------------------------------------

TheString defined as here: 

image.png.8460024f91590165544f86ee5a65b471.png

 

Is there a way to do it?

Thanks, Bjarni

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...