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; }
In reply to Re^5: Minimizing the amount of place holders on long identical regex
by ikegami
in thread Minimizing the amount of place holders on long identical regex
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |