Using Origin 8.1 I get a strange error using Origin C and strings as parameters. My example code looks as follows:
void string_test1(string s1, string s2)
{
printf("string 1: %s\n", s1);
printf("string 2: %s\n", s2);
}
Calling this from the command windows works with these arguments nicely:
quote:
>>string_test1("a", "b")
string 1: a
string 2: b
It fails with these arguments though:
quote:
>>string_test1("a", "b=c")
incorrect number of arguments passed to function: string_test1
#Command Error!
>>
It seems that the equals sign triggers some kind of interpretation that I do not want. Escaping it with \= did not make any difference or putting ' around the string values. Can somebody give me hint what is going on here or is this a bug in Origin?
Thanks for any help.
Alexander