Using regex in sscanf

Feb 23, 2011 at 6:38am
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?

Feb 23, 2011 at 6:43am
Because they are arrays, which will decay to pointers in this case.
Topic archived. No new replies allowed.