/* * detab: eat tabs */ #include main() { register xp, c; xp = 0; while ((c=getchar()) != EOF) { if (c == '\n') xp = 0; else if (c == '\t') { do { putchar(' '); } while (++xp & 7); continue; } else xp++; putchar(c); } } /* detab */