amiws  2.2.1
linked_str_stack.h
Go to the documentation of this file.
1 
28 #ifndef __AMIWS_linked_str_stack_H
29 #define __AMIWS_linked_str_stack_H
30 
31 #include <stddef.h>
32 
33 typedef struct LinkedStrStackNode_ {
34  char *str;
35  size_t len;
36 
37  struct LinkedStrStackNode_ *prev;
39 
40 typedef struct LinkedStrStack_ {
41  LinkedStrStackNode *top;
43 
44 
45 LinkedStrStack *linked_str_stack_create();
46 
47 void linked_str_stack_destroy(LinkedStrStack *stack);
48 
49 void linked_str_stack_push(LinkedStrStack *stack, char *str, size_t len);
50 
51 size_t linked_str_stack_peek(LinkedStrStack *stack, char **str);
52 
53 void linked_str_stack_pull(LinkedStrStack *stack);
54 
55 #endif
Definition: linked_str_stack.h:40
Definition: linked_str_stack.h:33