use io;
use crate ScannerError;
/// Get the hostname using the `gethostname` function in libc.
///
/// ```rust
/// extern crate mprober_lib;
///
/// use mprober_lib::hostname;
///
/// let hostname = hostname::get_hostname().unwrap();
///
/// println!("{}", hostname);
/// ```