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