Golden Rule of Tabs...


#include <stdio.h>
#include <stdlib.h>

int
main(void)
{
int ch;

while ( (ch = getchar()) != EOF)
{
if (ch == '\n')
{
while ( (ch = getchar()) != EOF && ch == '\t')
{
}
}
if (ch == '\t')
{
abort();
}
}

return 0;
}

Labels: