Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to portably truncate a file?
@ 1995-03-30  0:27 Brian Olson
  0 siblings, 0 replies; only message in thread
From: Brian Olson @ 1995-03-30  0:27 UTC (permalink / raw)



Greeetings gurus,

I was asked a pretty simple Unix programming question the other day, 
and was suprised to realized that I didn't know the correct answer.
The question was:
	Is there a portable way in Unix to truncate an existing file 
to a smaller (but non-zero) length?

I know about the truncate() and ftruncate() functions introduced in
BSD4.2 or thereabouts, but these don't seem to be portable (for example,
System V Release 3.2 doesn't seem to support them).

Is there such a function that is portable?

Thanks in advance
Brian Olson
bolson@arcada.com




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-03-30  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-30  0:27 How to portably truncate a file? Brian Olson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox