Broken but compiling

You need to check the diff and see where the mistake is for this commit.
This commit is contained in:
Rickey Fehr
2026-05-23 22:26:53 -07:00
parent 919c8d2d69
commit 7ce653884b
7 changed files with 193 additions and 165 deletions

View File

@@ -27,3 +27,8 @@ void* stack_pop(Stack* stack)
{
return (stack->top < 0) ? NULL : stack->data_array[stack->top--];
}
void* stack_at(Stack* stack, unsigned int idx)
{
return (idx <= stack->top) ? stack->data_array[idx] : NULL;
}