www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/22/20:52:48

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Truncating a file at a given length
Date: 22 Jan 2001 16:43:35 -0800
Organization: InterWorld Communications
Lines: 13
Sender: nate AT mercury DOT st DOT hmc DOT edu
Message-ID: <838zo3qers.fsf@mercury.st.hmc.edu>
References: <kbjp6t0t3931kssiv86kdddfdln17mi841 AT 4ax DOT com>
NNTP-Posting-Host: mercury.st.hmc.edu
Mime-Version: 1.0
X-Trace: nntp1.interworld.net 980210615 87645 134.173.57.219 (23 Jan 2001 00:43:35 GMT)
X-Complaints-To: usenet AT news DOT interworld DOT net
NNTP-Posting-Date: Tue, 23 Jan 2001 00:43:35 +0000 (UTC)
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> writes:

> Is there a function in DJGPP libc to truncate a file at a given
> length that is more portable than ftruncate() (not ANSI, not POSIX)?

Not that I know of.  However, despite being not ANSI and not POSIX,
[f]truncate is part of the Single Unix spec and should be supported on
most reasonable Unix systems.

-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019