Example #1
0
static void LiberarElemento ( tpElemLista * pElem, void ( * ExcluirValor ) ( void * pConteudo ) )
{
	
	ExcluirValor ( pElem );
	pElem = NULL;
	
} /* Fim função: LIS  -Liberar elemento da lista */
Example #2
0
void LiberarNo( TpLista * pLista , TpNoLista * pElem, void ( * ExcluirValor) ( void * pDado) )
{

	if (( pElem != NULL ))
	{
		pElem->pAnt = pElem->pProx;
		ExcluirValor ( pElem->pValor ) ;

		pLista->numElementos = pLista->numElementos - 1;
#ifdef _DEBUG
		CED_MarcarEspacoNaoAtivo(pElem);
#endif
		free(pElem);
	} /* if */



} /* Fim função: LST Liberar No da lista */