---- D=09-Jul-92 A=Ross Williams S=FunnelWeb and TAB characters (ASCII 9) K=funnelweb tab characters spacing layout ---- FUNNELWEB AND TAB CHARACTERS (ASCII 9) ====================================== One feature of FunnelWeb that has annoyed a lot of users is its "attitude" towards TAB characters which it flags as errors. Perhaps in the future something can be done about this "problem" with FunnelWeb. Meanwhile, the following program to remove tabs has been kindly donated by John Skaller. /* UNTAB Program */ /* ============= */ /* Author : John Skaller (maxtal@extro.ucc.su.oz.au) */ /* Organization : MAXTAL P/L 6 Mackay St ASHFIELD 2131. */ /* Usage : untab 2 outfile */ /* Status : Public domain. */ #include int main(int argv, char **argc) { int n=2; if(argv==2)sscanf(argc[1],"%d",&n); int ch=getchar(); int column=0; while(ch!=-1){ if(ch=='\n'){putchar('\n'); column=0;} else if(ch==9){ putchar(' '); column++; while(column%8){putchar(' '); column++;} } else { putchar(ch); column++;} ch=getchar(); } } PS: I would like to see a lot more error checking in this program. Does anyone feel like adding this? ----