daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Feb 3rd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(){
  5.  
  6.  
  7.     FILE* child = popen("cat", "w");
  8.     fputs("TEST\n", child);
  9.  
  10.  
  11.     char c;
  12.     while(1){
  13.         c = getc(stdin);
  14.         if(c == EOF) break;
  15.         fputc(c,child);
  16.     }
  17.  
  18.     pclose(child);
  19.  
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top