BUT2/SCR/SCR2/TP05/ex1.1.c
2023-10-23 13:23:36 +02:00

21 lines
279 B
C

#define _GNU_SOURCE
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
int main(int argc, char *argv[])
{
int t[2];
int size;
assert(pipe(t) == 0);
size = fcntl(t[0],F_GETPIPE_SZ);
printf("size = %d\n",size);
return 0;
}