in reply to Re^4: Minimizing the amount of place holders on long identical regex
in thread Minimizing the amount of place holders on long identical regex

char *even_chars(const char *src) { char *dst = malloc(strlen(src)/2 + 1); char *p = dst; while (1) { if (!*src) break; *(p++) = *(src++); if (!*src) break; src++; } *p = 0; return dst; }
  • Comment on Re^5: Minimizing the amount of place holders on long identical regex
  • Download Code