Actually, setting the length greater than the actual file size is undefined behavior.
In reply to Re: Answer: How do I pre-extend a file to a specified size
by Mr. Muskrat
in thread How do I pre-extend a file to a specified size
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |