Go to the source code of this file.
|
typedef struct stack | Stack |
◆ Stack
typedef struct stack Stack |
◆ stack_create()
Stack * stack_create |
( |
void | | ) |
|
◆ stack_empty()
int stack_empty |
( |
Stack * | s | ) |
|
◆ stack_free()
void stack_free |
( |
Stack * | s | ) |
|
Free memory of the stack structure
◆ stack_odds()
int stack_odds |
( |
Stack * | s | ) |
|
Count the elements which is odd
◆ stack_pop()
int stack_pop |
( |
Stack * | s | ) |
|
Pop a element from top of stack
◆ stack_print()
void stack_print |
( |
Stack * | s | ) |
|
Print the elements of stack without a newline
◆ stack_println()
void stack_println |
( |
Stack * | s | ) |
|
Print the elements of stack with a newline on the end
◆ stack_push()
void stack_push |
( |
Stack * | s, |
|
|
int | data ) |
Push a new element on top of stack
◆ stack_top()
int stack_top |
( |
Stack * | s | ) |
|
Get the element of top without removing