Skip to content

Instantly share code, notes, and snippets.

@knutaf
Created March 25, 2023 06:59
use std::io::Read;
fn main() {
for b in std::io::stdin().bytes() {
let val = b.unwrap();
match val {
0xd => println!(""),
0xa => (),
_ => println!("{:#02x}", val),
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment