#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
#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