summaryrefslogtreecommitdiff
path: root/test/stack.h
blob: 8bb1539ba978a5cdb7d91ebd353b232b90416c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __STACK_H__
#define __STACK_H__

#define STACK_SIZE 100

struct stack_st {
    int len;
    int size;
    int* arr;
};

void stackPush(int val);
int stackPop(void);
int stackIsEmpty(void);
int stackPeek(void);
void stackPrint(void);

#endif