完成了顺序存储栈和链式存储栈

This commit is contained in:
lzy
2024-04-16 22:14:12 +08:00
parent 11df2226be
commit f13a690864
10 changed files with 474 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#ifndef STACK_H__
#define STACK_H__
#include "llist.h"
typedef LLIST STACK;
STACK *stack_create(int);
int stack_push(STACK *, const void *data);
int stack_pop(STACK *, void *data);
void stack_destroy(STACK *);
#endif