TeoCCl library  0.1.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stack.h
Go to the documentation of this file.
1 
11 #ifndef STACK_H
12 #define STACK_H
13 
14 #include <stdlib.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 typedef struct ccl_stack ccl_stack_t;
21 
22 ccl_stack_t *cclStackInit(size_t data_size);
23 
27 
28 int cclStackPush(ccl_stack_t *s, void *const data);
29 
30 int cclStackPop(ccl_stack_t *s, void *data);
31 
32 int cclStackTop(ccl_stack_t *s, void *data);
33 
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
int cclStackTrim(ccl_stack_t *s)
Definition: stack.c:41
int cclStackClear(ccl_stack_t *s)
Definition: stack.c:65
int cclStackPop(ccl_stack_t *s, void *data)
Definition: stack.c:53
struct ccl_stack ccl_stack_t
Definition: stack.h:20
int cclStackSize(ccl_stack_t *s)
Definition: stack.c:29
int cclStackPush(ccl_stack_t *s, void *const data)
Definition: stack.c:47
void cclStackDestroy(ccl_stack_t *s)
Definition: stack.c:71
int cclStackTop(ccl_stack_t *s, void *data)
Definition: stack.c:59
ccl_stack_t * cclStackInit(size_t data_size)
Definition: stack.c:10
int cclStackEmpty(ccl_stack_t *s)
Definition: stack.c:35