write_bytes.3

MudOS_0.9.18/doc/efuns/filesystem/write_bytes.3 · 556 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"writes a contiguous series of bytes to a file beginning at a given point.
.TH write_bytes 3

.SH NAME
write_bytes() - writes a contiguous series of bytes to a file

.SH SYNOPSIS
int write_bytes(string path, int start, string series);

.SH DESCRIPTION
This function writes the bytes in 'series' into the file named by 'path'
beginning at byte # 'start'.  Note that (start + strlen(read_file(path)))
must not be past the end of the file 'path' or write_bytes() will fail.
It returns 0 upon failure, 1 otherwise.

.SH SEE ALSO
write_file(3), read_bytes(3)

Site Stats

Snippets: 1791
Codebases: 571