diff options
| author | mo khan <mo.khan@gmail.com> | 2020-07-05 13:21:43 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-07-05 13:21:43 -0600 |
| commit | 15db180b1df02c73dc8632e5ae1eb0f29e2dceaa (patch) | |
| tree | 44a2bec5f32096c1dad6ce38c04e9494d8a70603 /src/01/06/min_stack.h | |
| parent | 313092818159142508866eb975a1d5f6089d9399 (diff) | |
Improve formatted output
Diffstat (limited to 'src/01/06/min_stack.h')
| -rw-r--r-- | src/01/06/min_stack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/01/06/min_stack.h b/src/01/06/min_stack.h index 416a93a..92899c7 100644 --- a/src/01/06/min_stack.h +++ b/src/01/06/min_stack.h @@ -11,8 +11,12 @@ typedef struct { int size; } Stack; +typedef void (*Visitor)(Node *); + Stack *initialize(void); void push(Stack *self, int data); int pop(Stack *self); int size(Stack *self); int min(Stack *self); +void each(Node *head, Visitor block); +void inspect(Stack *stack); |
