Debian Codegraph @

debian/rust-vendor/hostname/examples/hostname.rs

raw
1 //! Naive re-implementation of the Linux `hostname` program.
2
3 use std::io;
4
5 fn main() -> io::Result<()> {
6 let name = hostname::get()?;
7
8 println!("{}", name.to_string_lossy());
9
10 Ok(())
11 }