Files
fsnap/include/stack.h
Fabio Scotto di Santolo f2817f3ca5 Fix stack implementation
2026-09-13 16:04:11 +02:00

16 lines
291 B
C

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