is there any way how to recognize if getline was ended because of newline or because of EOF?
So, I would like to distinguish:
1. alfa \n beta \n gama \n EOF
2. alfa \n beta \n gama EOF
In the second case I don't want to read gama as a new string and I want to say, that the reading of last string was not successful. I am using while cycle to read the lines.
I can't edit incoming data.
There is probably possibility to solve this by using getchar. However it makes reading lines more complicated :-/
Thank you so much