Using regex in sscanf
1 2 3
|
char c, s1[2500],s2[2500];
sscanf(t,"%c id='%[^']' style='color:%[^']'>",&c,s1,s2);
|
Why don't we need the
&
in front of s1 and s2?
Because they are arrays, which will decay to pointers in this case.
Topic archived. No new replies allowed.