diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -1,15 +0,0 @@ -#include <stdio.h> -#include <unistd.h> - -int main() { - int test[2]; - pipe(&test); - - char buf[] = "123"; - char buf2[4]; - write( test[1], buf, sizeof(buf) ); - printf("lol\n"); - read( test[0], buf2, sizeof(buf2) ); - printf("answer: %s\n", buf2); -} - |