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 >
Text File  |  1991-09-26  |  370b  |  19 lines

  1. /*
  2.  *    Stack abstraction example header file
  3.  */
  4.  
  5. #define    STACK_SIZE    10
  6.  
  7. typedef    struct    {
  8.     char    *stk_magic;        /* stack magic number */
  9.     int    stk_top;        /* top of stack index */
  10.     void    *stk_stack[STACK_SIZE];    /* actual stack storage */
  11. }    STK;
  12.  
  13. STK    *StkConstruct();
  14. void    StkDestroy(STK*);
  15. void    StkPush(STK*, void*);
  16. void    *StkPop(STK*);
  17. int    StkIsEmpty(STK*);
  18.  
  19.