library/src/datastructures/BP-LinkedList.cc
// This will destroy flattened data generated by the linkl flattener.
This will destroy flattened data generated by the linkl flattener.
This will destroy flattened data generated by the linkl flattener .
BP_ERROR_T BP_LinkLDestroyFlatStringData(P_BP_LINKL head)
{
	if(!head)
		return ERR_FAILURE;
	if(head->flat_buff)
	{
		bpfree(head->flat_buff);
		head->flat_buff_n = 0;
		head->flat_buff = NULL;
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BP_LinkLDestroyFlatStringData ( P_BP_LINKL head ) { if ( ! head ) return ERR_FAILURE ; if ( head -> flat_buff ) { bpfree ( head -> flat_buff ) ; head -> flat_buff_n = 0 ; head -> flat_buff = NULL ; } return ERR_SUCCESS ; }
This will destroy flattened data generated by the linkl flattener.
This will destroy flattened data generated by the linkl flattener .
// check to make sure we have a head pointer // destroy flattened data if it already exists // free the buffer // reset values // return indicating success