stack8b.h

来自「Thinking in C 电子书的源代码」· C头文件 代码 · 共 16 行

H
16
字号
/* stack8b.h: Declarations for a stack of ints */

#define STK_ERROR -32767

/* Incomplete type */
typedef struct Stack Stack;

Stack* stk_create(int);
void stk_push(Stack*, int);
int  stk_pop(Stack*);
int  stk_top(Stack*);
int  stk_size(Stack*);
int  stk_error(Stack*);
void stk_destroy(Stack*);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?