Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tok explanations
#8
Gintaras Wrote:Usually as "pointer-based array" I use the address of the first of several local variables.
Example with lpstr.
Macro Macro2738
Code:
Copy      Help
str s="zero one two"
lpstr s1 s2 s3
int n=tok(s &s1 3) ;;or int n=tok(s &s1 3 "" 1)
out s1
out s2
out s3

yes, but size of str to tokenize is unknown, i'm forced to use

ARRAY(lpstr) s
int n=tok(s &s 3)
for _i 0 s.len
out s[_i]

correct?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)