Created
March 25, 2023 06:59
-
-
Save knutaf/2c5175fbf9aa7e77198e9d62e6d315da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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