library/src/filesystem/BP-Filesystem.cc
// reads from a file/stream/fifo pipe
reads from a file/stream/fifo pipe
reads from a file / stream / fifo pipe
int BP_FRead(FILE *file, char *buff, int size)
{
	if(!file || !buff || !size)
		return 0;
	int sizeRead = fread(buff, 1, size, file);
	return sizeRead;
}
int BP_FRead ( FILE * file , char * buff , int size ) { if ( ! file || ! buff || ! size ) return 0 ; int sizeRead = fread ( buff , 1 , size , file ) ; return sizeRead ; }
reads from a file/stream/fifo pipe
reads from a file / stream / fifo pipe
// ensure we have a valid file pointer // read from file ptr into our buffer // return the number of bytes read