I am trying to pass 2 strings from pForth to a primitive I am writing in C. I thought the way to do that would be something like:
c" String1" c" String2" myPrimitive
However myPrimitive is receiving two pointers to the same string. Here is my test.
c" String 1" c" String2" . .
I get back the following
1073674112 1073674112
Obviously the storage for parsing the string is being overwritten by the last c" string. Does pForth have a word/function that builds a real C null terminated string and leaves its address on the stack?