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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Unix there is no EOF character. It’s simply a concept, a value returned by
getcto signal “this is the end (beautiful friend)”.EOFis chosen so thatgetc(and friends) can’t return it in any other case.And about writing past the end of file, different filesystems do things differently.