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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.