I've been looking for this information on the internet and i couldnt find a definitive answer.
Can an EOF indicator occur before a \n character?
I mean, can an input file have
"stringEOF" this in itself, or does it always have a \n before an EOF
"string\nEOF".
I noticed that on WINDOWS, i cant press EOF before a \n character(or at the start of the file).
Is that the same on UNIX Operating systems?
If its not, then how do functions like gets() work there?
Does it returns a NULL char for a input string like
"stringEOF" or does it returns a pointer to "string" and the next call to gets returns a NULL because of EOF?