Stack newStackFromFloatArray(const float arr[], unsigned int size)
Create a Stack from an array of floats.
byte isInStack(Stack stack,...)
Detect if an item is inside a Stack.
void pushFromPtr(Stack stack, const void *element)
Push an item into a Stack.
Stack newStack(const spec_t spec)
Allocate a new Stack of specified type.
byte areStacksEqual(const Stack stack1, const Stack stack2)
Compare two Stack.
Stack newStackFromCharArray(const char arr[], unsigned int size)
Create a Stack from an array of chars.
byte isStackEmpty(Stack stack)
Check if Stack is empty.
Stack newStackFromPtrArray(const void *arr, unsigned int size)
Create a Stack from an array of pointers.
Stack newStackFromIntArray(const int arr[], unsigned int size)
Create a Stack from an array of integers.
void pop(Stack stack, void *dest)
Pop an item from a Stack.
Stack newStackFromDoubleArray(const double arr[], unsigned int size)
Create a Stack from an array of doubles.
void deleteHeadFromStack(Stack stack)
Delete current Stack head.
void deleteStack(Stack stack)
Delete a Stack.
unsigned int getStackLength(const Stack stack)
Get the size of a Stack.
void peekStack(Stack stack, void *dest)
Get the item at the head of a Stack without popping it.
Stack chooseNewStackFromArray(const spec_t spec, const void *arr, unsigned int size)
Create a Stack from an array.
void push(Stack stack,...)
Push an item into a Stack.
void printStack(const spec_t spec, const Stack stack)
Print contents from a Stack.
Stack type
Definition: types.h:95
Collection of useful types.
char * spec_t
Used to specify type of argument passed in functions that require a type specifier.
Definition: types.h:20