How do I SHORTEN a file without rewriting it?
Bob Stout
Bob.Stout at p6.f506.n106.z1.fidonet.org
Tue Oct 30 18:10:16 AEST 1990
In a message of <Oct 27 00:12>, Laird Broadfield (lairdb at crash.cts.com ) writes:
>Okay, tell us where in K&R you find ftruncate. I don't see it in
>the TurboC manual, or K&R2. Perhaps YOUR funky.lib has it, but not
>everyone's does.
While you have your TC manual open, turn to chsize()...
>As long as we're on the subject, does anyone have a neat-o method for
>getting rid of records from the _beginning_ of a file? (Standard
>preferred, but if there's an MSDOS way, I'll accept it....)
That one you'll have to write yourself.
More information about the Comp.lang.c
mailing list