Created
August 27, 2016 20:27
-
-
Save anoopemacs/451385a3a225d7d6fcf6fe194bb5efa4 to your computer and use it in GitHub Desktop.
loop until a blank line or EOF
This file contains hidden or 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
| char buf[2]; | |
| while (scanf("%1[\n]", buf) == 0) { // loop until a blank line or EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment