a
This commit is contained in:
parent
6d3953b1c0
commit
63d552bb53
@ -17,7 +17,7 @@ void init(struct stack *s){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int is_empty(struct stack *s){return s->size==0;}
|
int is_empty(struct stack *s){return s->size==0;}
|
||||||
int is_full(struct stack *s){return s->size==STACK_SIZE-1;}
|
int is_full(struct stack *s){return s->size==STACK_SIZE;}
|
||||||
|
|
||||||
|
|
||||||
void push(struct stack *s, float value){
|
void push(struct stack *s, float value){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user