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