Files
C/data_structures/stack/stack_linked_list/stack.h
2020-05-29 20:23:24 +00:00

16 lines
297 B
C

#ifndef __STACK__
#define __STACK__
#define T Stack_T
typedef struct T *T;
extern T Stack_init(void);
extern int Stack_size(T stack);
extern int Stack_empty(T stack);
extern void Stack_push(T stack, void *val);
extern void *Stack_pop(T stack);
extern void Stack_print(T stack);
#undef T
#endif