[][src]Function simple_libc::gethostname_raw

pub fn gethostname_raw(name_vec: &mut [Char]) -> Result<()>

Attempts to read the current system hostname into the given slice.

The result is null-terminated. Behavior in the case that the vector is not long enough is system-dependent.