D
Dave
Hello NG,
Is EOF an actual character with an ASCII code, or is it an implicit
character?
Thanks,
Dave
Is EOF an actual character with an ASCII code, or is it an implicit
character?
Thanks,
Dave
Hello NG,
Is EOF an actual character with an ASCII code, or is it an implicit
character?
Dave said:Hello NG,
Is EOF an actual character with an ASCII code, or is it an implicit
character?
And it's an *int*!Ioannis said:Dave wrote
:
No it is not part of ASCII code, it is a convention, the numeric value
returned/accepted by functions indicating that the end of a file is
reached.
It is usually -1.
Dave said:Hello NG,
Is EOF an actual character with an ASCII code, or is it an implicit
character?
Thanks,
Dave
Earlier systems (like cpm and msdos) had a ^Z character to indicate end
of file.
David said:On Sun, 23 Jan 2005 12:38:51 -0800 in comp.lang.c++, Gianni Mariani
And all the way to current MS Windows systems. Likewise ^D indicates
end of file in some Unix contexts. However, that has no relation to
the C and/or C++ standard #define EOF
EOF is a special value returned from fgetc() etc. that specifically is
outside the range of values of a char.
David said:EOF is a special value returned from fgetc() etc. that specifically is
outside the range of values of a char.
And all the way to current MS Windows systems. Likewise ^D indicates
end of file in some Unix contexts. However, that has no relation to
the C and/or C++ standard #define EOF
And all the way to current MS Windows systems. Likewise ^D indicates
end of file in some Unix contexts. However, that has no relation to
the C and/or C++ standard #define EOF
And all the way to current MS Windows systems. Likewise ^D indicates
end of file in some Unix contexts. However, that has no relation to
the C and/or C++ standard #define EOF
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.