BCI-base/stack.h

21 lines
378 B
C
Raw Normal View History

2018-09-26 15:50:12 +00:00
#ifndef bci_stack_h__
#define bci_stack_h__
#include <inttypes.h>
typedef struct bci_stack_s
{
struct bci_stack_s * next;
uint16_t value;
} * bci_stack_t;
char bci_stack_t_push(bci_stack_t * stack, uint16_t value);
char bci_stack_t_pop(bci_stack_t * stack, uint16_t * result);
2018-09-26 16:22:36 +00:00
/*
* Deletes the entire (!) stack.
*
* */
void bci_stack_t_del(bci_stack_t * stack);
2018-09-26 15:50:12 +00:00
#endif