12-15-2016, 09:24 AM
hmmm, i've got problem to get this in my mind
pointers base array should be ARRAY(lpstr*) b no???
How does the magic happen that str s1 s2 s3 becomes a pointer base array?
You only pass reference (i suppose it's memory address) of s1 (which is not a pointer) to tok function, and it can fill s2 and s3 based on n=3???
and why this is supposed to be faster than using lpstr array,
ARRAY(lpstr) a
tok _s &a -1 " " 1
Wouaa Gintaras, it burns my brain!!!!
pointers base array should be ARRAY(lpstr*) b no???
How does the magic happen that str s1 s2 s3 becomes a pointer base array?
You only pass reference (i suppose it's memory address) of s1 (which is not a pointer) to tok function, and it can fill s2 and s3 based on n=3???
and why this is supposed to be faster than using lpstr array,
ARRAY(lpstr) a
tok _s &a -1 " " 1
Wouaa Gintaras, it burns my brain!!!!
