blob: 2308b772af74b9ef4877da868c489683d8cb9c3a [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int write_bytes(string file, int start, bytes str)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Write string str to file file by overwriting the old bytes at
6 position start. If start is a negative value then it will be
7 counted from the end of the file. The file will not be
8 appended, instead the function will be aborted. Returns 1 for
9 success 0 for failure during execution.
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011 Note: since version 3.2@232, write_bytes() is able to append
12 to the file.
Zesstrad59c3892019-11-28 20:53:39 +010013
Zesstra715ec202025-07-09 22:18:31 +020014SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020015 save_object(E), write_file(E)