libflint/include/lfstack.h

15 lines
316 B
C
Raw Normal View History

2021-02-01 22:06:37 +00:00
#ifndef LIBFLINT_STACK_H
#define LIBFLINT_STACK_H
#include "lflinkedlist.h"
2021-02-01 22:06:37 +00:00
#define Stack List
2021-02-01 22:27:01 +00:00
void stack_init(Stack* stack, void (*destroy)(void* data));
void stack_destroy(Stack* stack);
int stack_push(Stack* stack, void *data);
void *stack_peek(Stack *stack);
int stack_pop(Stack *stack, void **data);
2021-02-01 22:06:37 +00:00
#endif