mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-07-26 02:42:49 +00:00
stack implementation by linkedlist
This commit is contained in:
15
data_structures/stack/stack_linkedlist/stack.h
Normal file
15
data_structures/stack/stack_linkedlist/stack.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user