library/src/blockclass/BP-BlockClass.cc
// push an element on the web result stack
push an element on the web result stack
push an element on the web result stack
BP_ERROR_T Block::popWebResultWebStack()
{
	if(!this->web_result_stack_n)
		return ERR_FAILURE;
	if(this->web_result_stack_current_index == (this->web_result_stack_n -1))
	{
		printf("\n GOT?: %u", this->web_result_id );
		return ERR_FAILURE;
	}
	this->web_result_stack_current_index++;
	memset((char *) &this->web_result_href, 0x00, sizeof(this->web_result_href));
	printf("\n Current Index?: %u", this->web_result_stack_current_index);
	strncat((char *) &this->web_result_href, this->web_result_stack[this->web_result_stack_current_index].href, sizeof(this->web_result_href)-1);
	this->web_result_id = this->web_result_stack[this->web_result_stack_current_index].result_id;
	return ERR_SUCCESS;
}
BP_ERROR_T Block :: popWebResultWebStack ( ) { if ( ! this -> web_result_stack_n ) return ERR_FAILURE ; if ( this -> web_result_stack_current_index == ( this -> web_result_stack_n - 1 ) ) { printf ( " \n " , this -> web_result_id ) ; return ERR_FAILURE ; } this -> web_result_stack_current_index ++ ; memset ( ( char * ) & this -> web_result_href , 0x00 , sizeof ( this -> web_result_href ) ) ; printf ( " \n " , this -> web_result_stack_current_index ) ; strncat ( ( char * ) & this -> web_result_href , this -> web_result_stack [ this -> web_result_stack_current_index ] . href , sizeof ( this -> web_result_href ) - 1 ) ; this -> web_result_id = this -> web_result_stack [ this -> web_result_stack_current_index ] . result_id ; return ERR_SUCCESS ; }
push an element on the web result stack
push an element on the web result stack
// ensure we have a result stack // if we've hit the top, stop popping, destroy data, and return // increment the current index // zero the buffer before copy // copy in string // set the result id // return indicating success