From: Nate Eldredge 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: NNTP-Posting-Host: mercury.st.hmc.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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