-
-
Save ibeauregard/34ad52471c62a0e22f7454e3475459ef to your computer and use it in GitHub Desktop.
The IntStack interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* int_stack.h */ | |
#include <stdbool.h> | |
typedef struct int_stack IntStack; | |
IntStack* new_stack(); | |
void push_to_stack(IntStack* stack, int value); | |
int pop_stack(IntStack* stack); | |
int peek_stack(IntStack* stack); | |
bool is_empty_stack(IntStack* stack); | |
void delete_stack(IntStack** stack); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment