Advertisement
techno-

queue.h

Mar 2nd, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #ifndef __QUEUE_H__
  2. #define __QUEUE_H__
  3.  
  4. typedef struct _queue *queue;
  5.  
  6. queue q_create(int size);            // Create a new queue
  7. int   q_elements(queue q);             // number of elements in a queue
  8. int   q_insert(queue q, void *elem); // insert an element into a queue
  9. void *q_remove(queue q);             // remove an element from the queue
  10. void  q_destroy(queue q);             // destroy a queue.
  11. void q_terminar(queue q);
  12.  
  13. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement