f-981229-10

ldmud-3.2.9/src/bugs/f-981229-10 · 598 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: new efun truncate_file()
From: Alfe
Date: Wed, 16 Dec 1998 21:11:51 +0100 (MET)
Type: Feature
State: Acknowledged

speaking of such: i'd like a truncate_file() efun which truncates files
(you guessed that from the name already?).  the current simulefun
implementation in TubMud for that function is rather ugly, copying the
file to a new one until the truncate position is reached and then removing
the original and renaming the copy.  for copying it also has to work
around the read/write_bytes limitation.

Note: make this a special mode of copy_file(),
e.g. copy_file(from,to,start,len)?

Site Stats

Snippets: 1791
Codebases: 571