src/lib/bpipe.c
int close_wpipe(BPIPE *bpipe)
{
   int stat = 1;

   if (bpipe->wfd) {
      fflush(bpipe->wfd);
      if (fclose(bpipe->wfd) != 0) {
         stat = 0;
      }
      bpipe->wfd = NULL;
   }
   return stat;
}
/* Close the write pipe only
 * BE careful ! return 1 if ok */
Close the write pipe only
BE careful . return 1 if ok
Close the write pipe only BE careful . return 1 if ok
int close_wpipe(BPIPE *bpipe)
{
   int stat = 1;
   if (bpipe->wfd) {
      fflush(bpipe->wfd);
      if (fclose(bpipe->wfd) != 0) {
         stat = 0;
      }
      bpipe->wfd = NULL;
   }
   return stat;
}
int close_wpipe ( BPIPE * bpipe ) { int stat = 1 ; if ( bpipe -> wfd ) { fflush ( bpipe -> wfd ) ; if ( fclose ( bpipe -> wfd ) != 0 ) { stat = 0 ; } bpipe -> wfd = NULL ; } return stat ; }
Close the write pipe only
 BE careful !
Close the write pipe only BE careful !