diff options
author | thing 1 <thing1@seacrossedlovers.xyz> | 2025-01-10 17:38:56 +0000 |
---|---|---|
committer | thing 1 <thing1@seacrossedlovers.xyz> | 2025-01-10 17:38:56 +0000 |
commit | e46e08fceff29622399855043554635d6e33c3c4 (patch) | |
tree | b8074819364bd54b54b4798f07002fe234c506ac /stack.h |
init commit
Diffstat (limited to 'stack.h')
-rw-r--r-- | stack.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#include <stdlib.h> + +typedef struct stack stack; + +typedef struct stack { + char *tape; + int len; + char *ptr; +} stack; + +stack *push(stack *s, char c); +char pop(stack *s); +char peek(stack *s); +void cleanstack(stack *s); |