Software
DIT General Purpose Libraries - Stack
The source code can be found on GitHub.
A simple stack implementation
Functions
stack_allocate() |
Allocate memory for a stack. |
stack_deallocate() |
Deallocate the memory the stack uses. |
stack_pop() |
Return and remove the top entry from the stack. |
stack_push() |
Put an entry on top of the stack. |
stack_realloc() |
Change the capacity of the stack. |
Files in this library
Stack.h |
Declarations for the Stack library |
Stack.c |
Implementation of the Stack library |
Notes
This library is currently implemented for the Atmel Software Foundation only.
You can get rid of this dependency by
- removing
#include <asf.h>
- defining your own
enum status_code