12-15-2016, 10:11 AM
ok, but i still don't get how tok function (assuming 3 tokens to find)
fills s1 s2 s3 str variables given only address of s1 by reference..must be stupid but really can't understand this. I can understand with array(str)
as it points to the first element of the array.
str s="zero one two"
str s1 s2 s3
int n=tok(s &s1 3)
out s1
out s2
out s3
this is a mystery of inner QM managment of the tok function...
fills s1 s2 s3 str variables given only address of s1 by reference..must be stupid but really can't understand this. I can understand with array(str)
as it points to the first element of the array.
str s="zero one two"
str s1 s2 s3
int n=tok(s &s1 3)
out s1
out s2
out s3
this is a mystery of inner QM managment of the tok function...