Yea, I guess that would work. The reason I had it is this:
Code:
void skip_space(char** str)
{
for(; **str != '\0' && isspace(**str); (*str)++);
}
which takes a pointer to a pointer to a string and slides it over until it points to the first nonspace. I wanted something like this:
Code:
char x[50] = "# Some comment with leading spaces...";
char* y = x;
skip_space( &(++x) );
to skip the first '#' and then skip spaces, but then I realized there were much better ways. Thanks anywas :-). Cheers,
Yoshi