Function libc::write [] [src]

pub fn write(fd: usize, buf: &[u8]) -> Result<usize, Error>

Write a buffer to a file descriptor

The kernel will attempt to write the bytes in buf to the file descriptor fd, returning either an Err, explained below, or Ok(count) where count is the number of bytes which were written.