Files
Linux-C-Notes/C11-数据结构/ds/line/ball_clock/sqstack.h
2024-05-27 02:33:10 +08:00

30 lines
414 B
C

#ifndef SQSTACK_H__
#define SQSTACK_H__
#define SIZE 32
typedef int type;
typedef struct node_st
{
type data[SIZE];
int top;
} sqstack;
sqstack *st_create(void);
int st_isempty(sqstack *);
int st_push(sqstack *, type *);
/* 取出栈顶元素 */
int st_pop(sqstack *, type *);
/* 查看栈顶元素 */
int st_top(sqstack *, type *);
void st_travel(sqstack *);
void st_destroy(sqstack *);
#endif