Created
June 13, 2017 14:12
-
-
Save alekratz/45dbb5bb99294cdbf70c89976940ce6b 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::{self, Write}; | |
fn main() { | |
let yes = "y\n".repeat(8192).into_bytes(); | |
let stdout = io::stdout(); | |
let mut stdout = stdout.lock(); | |
loop { | |
stdout.write(&yes); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment