You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sqqueue.h 232B

12345678910111213141516171819
  1. #ifndef _SQQUEUE_H_
  2. #define _SQQUEUE_H_
  3. struct message
  4. {
  5. int data;
  6. };
  7. typedef struct message * message_t;
  8. struct queue
  9. {
  10. message_t msg;
  11. int front;
  12. int rear;
  13. int len;
  14. };
  15. typedef struct queue * queue_t;
  16. #endif