blob: 45f8daaf9b9f4c2297b9cb05db8c8067c42b6187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef __STACK_H__
#define __STACK_H__
#define STACK_SIZE 100
struct stack_st {
int len;
int size;
int* arr;
};
void stackPush(struct stack_st *s, int val);
int stackPop(struct stack_st *s);
int stackIsEmpty(struct stack_st *s);
int stackPeek(struct stack_st *s);
void stackPrint(struct stack_st *s);
void stackFree(struct stack_st *s);
#endif
|