I'd suggest rewriting this expression in some easier way:
              p += (*p == '%' && *(p + 1)) ? 2 : 1;

I'd prefer
              if (*p == '%')
                p++;
              p++;

That's not the same thing though.  Maksim's code is correct,
although it could certainly be written more clearly.

Maybe something like

  if (*p == '%')
    p++;
  if (*p)
    p++;


Segher

Reply via email to