src/libs/elektra/opmphm_vstack.c
/**
 * Clears the stack in a fast fashion.
 * Resets the stackpointer to the base and does not reallocate memory.
 * The next reallocation happens at Pop.
 *
 * @ingroup vstack
 * @retval 0 on success
 * @retval 1 on error
 */
Clears the stack in a fast fashion.
Resets the stackpointer to the base and does not reallocate memory.
The next reallocation happens at Pop.

@ingroup vstack
@retval 0 on success
@retval 1 on error
Clears the stack in a fast fashion . Resets the stackpointer to the base and does not reallocate memory . The next reallocation happens at Pop . @ingroup vstack @retval 0 on success @retval 1 on error
int elektraVstackClear (Vstack * stack)
{
	if (!stack) return 1;
	stack->head = stack->data;
	return 0;
}
int elektraVstackClear ( Vstack * stack ) { if ( ! stack ) return 1 ; stack -> head = stack -> data ; return 0 ; }
Clears the stack in a fast fashion.
Clears the stack in a fast fashion .