back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/stack.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-02 02:03:57 +0300
committerscratko <m@scratko.xyz>2024-04-02 02:03:57 +0300
commit80749242cc6aa604c6ee3a7e3169df73c14e55d2 (patch)
treebfc4db5b1b209d81dca539588350ac7b8cfab13e /stack.h
parent8a704989e2d4733e6e847cb272a40dd85de4c9cd (diff)
downloadarithmetic-expression-computator-master.tar.gz
arithmetic-expression-computator-master.tar.bz2
arithmetic-expression-computator-master.zip
Minor changesHEADmaster
Corrected description. Fixed pointer symbol in some places.
Diffstat (limited to 'stack.h')
-rw-r--r--stack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stack.h b/stack.h
index f7d0cfb..eeeb5f4 100644
--- a/stack.h
+++ b/stack.h
@@ -5,13 +5,13 @@ struct item {
long data;
struct item *next;
};
-typedef struct item* stack;
+typedef struct item *stack;
void init_stack(stack *st);
void push_stack(stack *st, long num);
long pop_stack(stack *st);
int is_empty_stack(const stack *st);
long top_stack(const stack *st);
-extern void* heap_base;
+extern void *heap_base;
#endif