Implement stack data structure WIP

This commit is contained in:
Fabio Scotto di Santolo
2026-08-27 00:11:35 +02:00
parent 8c34ab4f4e
commit be86f05d58
3 changed files with 90 additions and 0 deletions

15
include/stack.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef STACK_H
#define STACK_H
#include <stdbool.h>
struct Stack;
struct Stack *StackNew();
bool StackEmpty(const struct Stack *);
void *StackTop(const struct Stack *);
void *StackPop(struct Stack *);
int StackPush(struct Stack *, void *);
void StackRelease(struct Stack *);
#endif