write_string

func write_string(fd: Int, s: String) 'io -> Int

Requests one host write of the string's complete UTF-8 buffer.

The return value is the host's byte count or negative errno; partial writes are not retried. Use fs.File.write when the complete string must be written.

View Source
pub func write_string(fd: Int, s: String) 'io -> Int {
	#_ir(fd, s.storage.base, s.byte_count) { %? = io 1 $0 $1 $2 }
}