You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
259 B
C
12 lines
259 B
C
2 years ago
|
#include <stdbool.h>
|
||
|
|
||
|
typedef struct Stack Stack;
|
||
|
|
||
|
Stack* new_stack(int stack_size);
|
||
|
|
||
|
void stack_push(Stack* stack, void* element);
|
||
|
void* stack_pop(Stack* stack);
|
||
|
void* stack_peek(Stack* stack);
|
||
|
int stack_size(Stack* stack);
|
||
|
bool stack_isEmpty(Stack* stack);
|