M
Micah Cowan
Roman Mashak said:Hello, Micah!
You wrote on Thu, 23 Feb 2006 23:07:14 GMT:
[skip]
??>> /* skip spaces inside of token */
??>> for (; *idx != '\0' && (*idx == ' ' || *idx == '\t'); idx++)
??>> ;
MC> This is the same thing as:
MC> idx += strspn(idx, " \t");
It's not exactly same, the purpose of my code it to keep original buffer and
work only with second pointer.
I don't see how that changes with my line above.
And result of 'strspn()' comes into 'size_t' variable, while I need to work
with 'char *'
Which is why I did +=, and not =.
-Micah