Go to the documentation of this file.
19 typedef struct sStackNode
void stackDelete(Stack stack)
Deletes a stack.
int stackTop(Stack stack, void **value)
Provides the value of the element at the top of a stack.
int stackSize(Stack stack)
Returns the size of a stack.
int stackPush(Stack stack, void *value)
Inserts an element at the top of the stack.
struct sStackNode * next
Next node.
int stackPop(Stack stack, void **value)
Removes an elements from the top of a stack.
int stackMap(Stack stack, void(*fun)(void *))
Applies a function to the elements of a stack.
SStack * Stack
Stack definition.
Iterator stackIterator(Stack stack)
Creates an iterator from a stack.
Stack newStack(void)
Creates a stack.
void * value
Node's value.
SStackNode * StackNode
Stack node definition.
StackNode top
Top node of this stack.
Implementation of an iterator.
int size
Number of values of this stack.
LibRCG © 2004-2015
Rui Carlos Gonçalves