Process module

write_to_process

procedure · 1 overloadSource

Writes data to the child's standard input and returns (success, bytes_written). It waits until the pipe has taken everything. It fails with the number of bytes that did go in when the pipe is closed, or the child has closed its end. Empty data succeeds with 0.

write_to_process :: (
    process: *Process,
    data: [] u8
) -> (success: bool, bytes_written: int)

Parameters

process: *Process
data: [] u8

Returns

success: bool
bytes_written: int

See also