I'm new to development in VxWorks (using 6.8) and I've run into a situation where I need to pass the address of a struct to a function. Is it possible to create a struct from the interpreter shell? I have a hard copy of a VxWorks programmers guide that is based on v5.5 and it explicitly says that structs cannot be formed/created from the interpreter shell. Has this changed in later versions of VxWorks and if so, how would I make a struct from the command line.
As a VxWorks newb, I was hoping to run the command
myStruct = {msg1 ="hi", msg2 = "hello" }
and then use the struct in another statement like
printf("%s\n", myStruct.msg1)
If a struct cannot be created in the interpreter like above, what options can I pursue in order to get the printf statement to print "hi" or "hello" by accessing a member within the struct?