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

#define STACK_SIZE 100

struct stack_st {
    int len;
    int arr[STACK_SIZE];
};

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

#endif