Created
August 18, 2016 02:16
-
-
Save rogersguedes/dc432e49d743aaa4f3033852744a79c6 to your computer and use it in GitHub Desktop.
code snippet in C to explain to people how pipes works.
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main(void){ | |
| char input[32]; | |
| printf("Digite alguma coisa: "); | |
| fflush(stdout); | |
| scanf("%31[^\n]", &input); | |
| printf("você digitou: %s\n", input); | |
| return EXIT_SUCCESS; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment