www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/04/28/08:58:07

Date: Wed, 28 Apr 93 08:18:34 EDT
From: DJ Delorie <dj AT ctron DOT com>
To: graeme AT labtam DOT labtam DOT oz DOT au
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: managing diff's

> I've been investigating the trucate bug I posted on earlier,
> and after looking through a description of the DOS system calls,
> came to the conclusion that the only way you can truncate a file
> is using FCB functions. Can anyone confirm that ?

Theoretically, if you seek() to a spot in the file and write zero
bytes, MS-DOS will truncate the file at that point.  `strip' uses this
technique, as does libc's ftruncate() function.

- Raw text -


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