mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
Implement stack data structure WIP
This commit is contained in:
15
include/stack.h
Normal file
15
include/stack.h
Normal 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
|
||||
Reference in New Issue
Block a user