Skip to content

Instantly share code, notes, and snippets.

@knutaf
Created March 25, 2023 06:59
Show Gist options
  • Save knutaf/2c5175fbf9aa7e77198e9d62e6d315da to your computer and use it in GitHub Desktop.
Save knutaf/2c5175fbf9aa7e77198e9d62e6d315da to your computer and use it in GitHub Desktop.
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