Thursday, 4 December 2014

Program to find size of pipe in UNIX


#include"myHeader.h"
int i=0;
main()
{
int count=0;
int fp[2];
pipe(fp);
while(1)
{
printf("count=%d\n",count);
count++;
write(fp[1],&count,1);
}
}
OutPut:
count=65535
count=65536