1 2 3 4 5 6
void percent_x(int ch, char *p, char* ok_chars) { char *cp = ch == 'a' ? p : ""; for (;*(cp += __builtin_strspn (cp, ok_chars));) ; }