Hi
I write some programm which reading data from stdin until EOF
Code:
        while (scanf("%s",slowo)!=EOF)
    {
        do something
         }
and i programm doesn't recognize CTRL+Z i have to press it 3 or 4 times and then while is terminated. Can you tell me please where is mistake and why it is happen?