library/src/filesystem/BP-Filesystem.cc
// writes to a file/stream/fifo pipe
writes to a file/stream/fifo pipe
writes to a file / stream / fifo pipe
int BP_FWrite(FILE * file, char *buff, int size)
{
	if(!file || !buff || !size)
		return 0;
	int sizeOut = fwrite(buff, 1, size, file);
	return sizeOut;
}
int BP_FWrite ( FILE * file , char * buff , int size ) { if ( ! file || ! buff || ! size ) return 0 ; int sizeOut = fwrite ( buff , 1 , size , file ) ; return sizeOut ; }
writes to a file/stream/fifo pipe
writes to a file / stream / fifo pipe
// ensure we have a valid file pointer // attempt to write the file // return the size of the data written