library/src/filesystem/BP-Filesystem.cc
// opens a file descriptor, and returns a stream FILE object to the fd, use mode
// to specify the mode to open with.
// Note: Use FClose to close the descriptor not FDClose
opens a file descriptor, and returns a stream FILE object to the fd, use mode
to specify the mode to open with.
Note: Use FClose to close the descriptor not FDClose
opens a file descriptor and returns a stream FILE object to the fd use mode to specify the mode to open with . Note : Use FClose to close the descriptor not FDClose
FILE * BP_FDOpen(int fd, char *mode)
{
	if(!mode)
		return NULL;
	FILE * file = fdopen(fd, mode);
	return file;
}
FILE * BP_FDOpen ( int fd , char * mode ) { if ( ! mode ) return NULL ; FILE * file = fdopen ( fd , mode ) ; return file ; }
opens a file descriptor, and returns a stream FILE object to the fd, use mode
to specify the mode to open with.
opens a file descriptor and returns a stream FILE object to the fd use mode to specify the mode to open with .
// ensure we have a mode pointer // attempt to open the file descriptor // return the file pointer