Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- FILE* child = popen("cat", "w");
- fputs("TEST\n", child);
- char c;
- while(1){
- c = getc(stdin);
- if(c == EOF) break;
- fputc(c,child);
- }
- pclose(child);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement