src/ssx/ssx/ssx_core.c
/// Initialize an SsxDeque sentinel node
///
/// \param deque The sentinel node of the deque
///
/// SSX has no way of knowing whether the \a deque is currently in use, so
/// this API must only be called on unitialized or otherwise unused sentinel
/// nodes.
///
/// \retval 0 success
///
/// \retval -SSX_INVALID_DEQUE_SENTINEL The \a deque pointer was null
Initialize an SsxDeque sentinel node
\param deque The sentinel node of the deque

SSX has no way of knowing whether the \a deque is currently in use, so
this API must only be called on unitialized or otherwise unused sentinel
nodes.

\retval 0 success

\retval -SSX_INVALID_DEQUE_SENTINEL The \a deque pointer was null
Initialize an SsxDeque sentinel node \ param deque The sentinel node of the deque SSX has no way of knowing whether the \ a deque is currently in use so this API must only be called on unitialized or otherwise unused sentinel nodes . \ retval 0 success \ retval - SSX_INVALID_DEQUE_SENTINEL The \ a deque pointer was null
int
ssx_deque_sentinel_create(SsxDeque* deque)
{
    if (SSX_ERROR_CHECK_API)
    {
        SSX_ERROR_IF(deque == 0, SSX_INVALID_DEQUE_SENTINEL);
    }
    deque->next = deque->previous = deque;
    return 0;
}
int ssx_deque_sentinel_create ( SsxDeque * deque ) { if ( SSX_ERROR_CHECK_API ) { SSX_ERROR_IF ( deque == 0 , SSX_INVALID_DEQUE_SENTINEL ) ; } deque -> next = deque -> previous = deque ; return 0 ; }
Initialize an SsxDeque sentinel node
\param deque The sentinel node of the deque
Initialize an SsxDeque sentinel node \ param deque The sentinel node of the deque