librnr/dlistvoid.c
DListVoidNode_T *DListVoidUnlinkNodeAt(DListVoid_T *pHead, int iIndex)
{
  DListVoidNode_T  *pNode;

  LOGDIAG4CALL(_TPTR(pHead), _TINT(iIndex));

  CHKPTR(pHead, NULL);

  // get node to delete
  if( (pNode = DListVoidGetNodeAt(pHead, iIndex)) != NULL )
  {
    // remove from list
    dlist_delete(&pNode->m_dnode);

    pHead->m_nNumNodes--;

    return pNode;
  }
  else
  {
    return NULL;
  }
}
/*!
 * \brief Unlink the node from the dlist at the given index.
 *
 * The node and it's attached data are not deleted.
 *
 * \param pHead  Pointer to dlist (head).
 * \param iIndex Index to dlist entry to unlink.
 *
 * \return Returns pointer to unlinked node on success, NULL on failure.
 */
\brief Unlink the node from the dlist at the given index.
The node and it's attached data are not deleted.

\param pHead  Pointer to dlist (head).
\param iIndex Index to dlist entry to unlink.

\return Returns pointer to unlinked node on success, NULL on failure.
\ brief Unlink the node from the dlist at the given index . The node and it ' s attached data are not deleted . \ param pHead Pointer to dlist ( head ) . \ param iIndex Index to dlist entry to unlink . \ return Returns pointer to unlinked node on success NULL on failure .
DListVoidNode_T *DListVoidUnlinkNodeAt(DListVoid_T *pHead, int iIndex)
{
  DListVoidNode_T  *pNode;
  LOGDIAG4CALL(_TPTR(pHead), _TINT(iIndex));
  CHKPTR(pHead, NULL);
  if( (pNode = DListVoidGetNodeAt(pHead, iIndex)) != NULL )
  {
    dlist_delete(&pNode->m_dnode);
    pHead->m_nNumNodes--;
    return pNode;
  }
  else
  {
    return NULL;
  }
}
DListVoidNode_T * DListVoidUnlinkNodeAt ( DListVoid_T * pHead , int iIndex ) { DListVoidNode_T * pNode ; LOGDIAG4CALL ( _TPTR ( pHead ) , _TINT ( iIndex ) ) ; CHKPTR ( pHead , NULL ) ; if ( ( pNode = DListVoidGetNodeAt ( pHead , iIndex ) ) != NULL ) { dlist_delete ( & pNode -> m_dnode ) ; pHead -> m_nNumNodes -- ; return pNode ; } else { return NULL ; } }
\brief Unlink the node from the dlist at the given index.
\ brief Unlink the node from the dlist at the given index .
// get node to delete // remove from list