summaryrefslogtreecommitdiff
path: root/src/stack.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2025-04-14 23:22:57 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2025-04-14 23:22:57 +0200
commitb3bd068f614a46580ee3e5688dd9cfd40694d75b (patch)
tree45183f99a8373527caa03ff473c4e40fe07cd459 /src/stack.h
parent63104d34e1c1772131f6366f825e67f38d027dba (diff)
Define clang-format and .editorconfig settingsHEADmaster
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/stack.h')
-rw-r--r--src/stack.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/stack.h b/src/stack.h
index 70f7e93..c366ca8 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -20,12 +20,14 @@
typedef struct stack
{
- size_t capacity;
- size_t size;
- int *data;
+ size_t capacity;
+ size_t size;
+ int* data;
} stack_t;
-void stack_push(stack_t *stack, int value);
-int stack_pop(stack_t *stack);
+void
+stack_push(stack_t* stack, int value);
+int
+stack_pop(stack_t* stack);
#endif /* STACK_H */