library/src/blockclass/BP-BlockClass.cc
// opens a file descriptor, and returns a stream FILE object
// use FClose to close the descriptor not FDClose
opens a file descriptor, and returns a stream FILE object
use FClose to close the descriptor not FDClose
opens a file descriptor and returns a stream FILE object use FClose to close the descriptor not FDClose
int Block::FD_Open(int fd, char *mode)
{
	if(!mode)
		return ERR_FAILURE;
	this->file = fdopen(fd, mode);
	if (this->file == NULL)
		return ERR_FAILURE;
	return ERR_SUCCESS;
}
int Block :: FD_Open ( int fd , char * mode ) { if ( ! mode ) return ERR_FAILURE ; this -> file = fdopen ( fd , mode ) ; if ( this -> file == NULL ) return ERR_FAILURE ; return ERR_SUCCESS ; }
opens a file descriptor, and returns a stream FILE object
use FClose to close the descriptor not FDClose
opens a file descriptor and returns a stream FILE object use FClose to close the descriptor not FDClose
// check mode // attempt to open the file descriptors // return indicating success