Question: what is ftruncate used for?
Answer: LIB file systems blanks are used instead of zeros to pad records after a member is extended.) The ftruncate() function does not modify the current file offset for any open file descriptions associated with the file. If ftruncate() completes successfully, it marks the change time and modification times of the file.