home *** CD-ROM | disk | FTP | other *** search
/ ftp.disi.unige.it / 2015-02-11.ftp.disi.unige.it.tar / ftp.disi.unige.it / pub / .person / CataniaB / teach-act / esempi / Comp-Sep / queue.h < prev    next >
C/C++ Source or Header  |  1997-04-22  |  322b  |  13 lines

  1. typedef  void * generic;
  2.  
  3. typedef  struct qcell * list;   
  4. struct  qcell  { generic el; list next; };
  5. typedef struct { list head, tail; } queue;
  6.  
  7. char    is_empty_queue(queue *); 
  8. void    empty_queue(queue *);
  9. void    enqueue(generic,queue *);
  10. generic dequeue (queue *);
  11. void    printq(queue *);
  12. void    destroy(queue *);
  13.