diff options
| author | Johnny Richard <johnny@johnnyrichard.com> | 2025-04-14 23:22:57 +0200 |
|---|---|---|
| committer | Johnny Richard <johnny@johnnyrichard.com> | 2025-04-14 23:22:57 +0200 |
| commit | b3bd068f614a46580ee3e5688dd9cfd40694d75b (patch) | |
| tree | 45183f99a8373527caa03ff473c4e40fe07cd459 /src/stack.h | |
| parent | 63104d34e1c1772131f6366f825e67f38d027dba (diff) | |
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/stack.h')
| -rw-r--r-- | src/stack.h | 12 |
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 */ |
