home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_05
/
1005075a
< prev
next >
Wrap
Text File
|
1991-09-26
|
370b
|
19 lines
/*
* Stack abstraction example header file
*/
#define STACK_SIZE 10
typedef struct {
char *stk_magic; /* stack magic number */
int stk_top; /* top of stack index */
void *stk_stack[STACK_SIZE]; /* actual stack storage */
} STK;
STK *StkConstruct();
void StkDestroy(STK*);
void StkPush(STK*, void*);
void *StkPop(STK*);
int StkIsEmpty(STK*);