Right now I am going through a book on C and have come across an example in the book which I cannot get to work.
#include #define IN 1 #defin
When you run it, you need to type in your text, press return, then type Ctrl-d and return (nothing else on the line) to signify end-of-file. Seems to work fine with my simple test.
return
Ctrl-d