[Tutor] EOF function

Silviu Cojocaru silviucc@home.ro
Fri Jul 4 10:00:17 2003


I want to write a function that will return 1 if EndOfFile is reached 
and 0 if not. Problem is I have no idea how that's done. Maybe there is 
a function that could return the current position in a file and if the 
char at that position is the EOF char then return 1.

Problems:
I do not know the escape sequence for EOF
I do not know a function that returns the current position in a file so 
maybe I need to write it as well :/ and again I would be at a loss.

If anyone can help me, I would be grateful.

-- 
Registered Linux user #298569
In this vale
Of toil and sin
Your head grows bald
But not your chin.
		-- Burma Shave