Reputation: 65024
Will this screw up file size estimation on the file system? Will the filesystem overwrite everything past the first EOF character? How is this handled?
Upvotes: 0
Views: 1084
Reputation: 182734
In Unix there is no EOF character. It's simply a concept, a value returned by getc
to signal "this is the end (beautiful friend)". EOF
is chosen so that getc
(and friends) can't return it in any other case.
And about writing past the end of file, different filesystems do things differently.
Upvotes: 3