Skip to content

Instantly share code, notes, and snippets.

@rogersguedes
Created August 18, 2016 02:16
Show Gist options
  • Select an option

  • Save rogersguedes/dc432e49d743aaa4f3033852744a79c6 to your computer and use it in GitHub Desktop.

Select an option

Save rogersguedes/dc432e49d743aaa4f3033852744a79c6 to your computer and use it in GitHub Desktop.
code snippet in C to explain to people how pipes works.
#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