library/src/blockclass/BP-BlockClass.cc
// Writes to a given file descriptor
Writes to a given file descriptor
Writes to a given file descriptor
int Block::FD_Write(int fd, char *buff, int size)
{
	if(!buff || !size)
		return ERR_FAILURE;
	int bytesWritten = BP_FDWrite(fd, buff, size);
	return bytesWritten;
}
int Block :: FD_Write ( int fd , char * buff , int size ) { if ( ! buff || ! size ) return ERR_FAILURE ; int bytesWritten = BP_FDWrite ( fd , buff , size ) ; return bytesWritten ; }
Writes to a given file descriptor
Writes to a given file descriptor
// ensure we have a buffer and size parameter // attempt to read from file descriptor // return the number of bytes written