
11 Mar
2002
11 Mar
'02
5:46 p.m.
Tim> 1. The docs promise that truncate() will never grow the file. I Tim> don't believe Unix ftruncate() promises that...
It does not. In fact, on my Mandrake box it explicitly says that behavior is unspecified:
If the file previously was shorter, it is unspecified whether the file is left unchanged or is extended.
Skip