summaryrefslogtreecommitdiff
path: root/graphs/piscine/stack/stack.h
blob: bd5dd24a10056e5e97b12300e474ab4a64f7a5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef STACK_H
#define STACK_H

struct stack
{
    int data;
    struct stack *next;
};

struct stack *stack_push(struct stack *s, int e);
struct stack *stack_pop(struct stack *s);
int stack_peek(struct stack *s);

#endif /* !STACK_H */