Okay in the K&R book the question states that i should write a programm called entabs that replases tabs with a certain number of spaces ...
So this is my problem i tried this
since getchar is a bufferen function ...It only work if i press enter ...but i want that when the person presses tab it should print k ...The above code is just for ilustration purpose ...And i dont wanna use unbuffered getche() function because it is not ANSI ...What should i do is there a way to write my own function that does it for me ..if possible how ???Code:while ( (c = getchar()) != EOF ) if ( c == '\t' ) printf("k");