garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

.. /ports/hostname-0.4.2/examples/hostname.rs

raw

//! Naive re-implementation of the Linux `hostname` program.

use std::io;

fn main() -> io::Result<()> {
    let name = hostname::get()?;

    println!("{}", name.to_string_lossy());

    Ok(())
}