Expand|Select|Wrap|Line Numbers
- #include <stdio.h>
- int main()
- {
- int c, d;
- while((c=getchar()!= EOF){
- d=0;
- if(c=='t'){
- putchar('\n'); //I did this to see if it will read the tab
- d=1
- }
- if(d==0)
- putchar(c);
- }
- return 0;
- }
C program that converts tabs to spaces
|