Data Structures UFC
1.0.0
Essential Data Structures for C language
Main Page
Data Structures
Files
File List
Globals
src
stack
stack.h
Go to the documentation of this file.
1
13
#ifndef STACK_H
14
#define STACK_H
15
16
#define STACK_STATIC_MAX 10
17
18
typedef
struct
stack
Stack
;
19
21
Stack
*
stack_create
(
void
);
22
24
int
stack_empty
(
Stack
* s);
25
27
void
stack_push
(
Stack
* s,
int
data);
28
30
int
stack_pop
(
Stack
* s);
31
33
void
stack_print
(
Stack
* s);
34
36
void
stack_println
(
Stack
* s);
37
39
void
stack_free
(
Stack
* s);
40
41
// additional functions
42
44
int
stack_top
(
Stack
* s);
45
47
int
stack_odds
(
Stack
* s);
48
49
#endif
stack_top
int stack_top(Stack *s)
stack_odds
int stack_odds(Stack *s)
stack_println
void stack_println(Stack *s)
stack_create
Stack * stack_create(void)
stack_push
void stack_push(Stack *s, int data)
stack_free
void stack_free(Stack *s)
stack_print
void stack_print(Stack *s)
stack_empty
int stack_empty(Stack *s)
Stack
struct stack Stack
Definition:
stack.h:18
stack_pop
int stack_pop(Stack *s)
Generated by
1.8.11