Truncating an existing file

Henry Spencer henry at zoo.toronto.edu
Thu Apr 25 03:14:38 AEST 1991


In article <3172 at dsacg3.dsac.dla.mil> nto0302 at dsacg3.dsac.dla.mil (Bob Fisher) writes:
>How can I truncate the end of a large file without copying the part
>to be preserved to a new file and then doing a remove/rename?

ANSI C provides no way to do this.

Nor, more to the point of your query although less appropriate to this
newsgroup, does System V.
-- 
And the bean-counter replied,           | Henry Spencer @ U of Toronto Zoology
"beans are more important".             |  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.lang.c mailing list