Traitement-signal-plantes/Code-C/queue.h

27 lines
689 B
C
Raw Normal View History

2022-06-10 10:47:17 +02:00
typedef struct queue *Pqueue;
2022-06-10 15:16:13 +02:00
//Constructors
2022-06-13 15:03:51 +02:00
Pqueue queueCreateE(int lenChar, const char* _tabChar);
Pqueue queueCreateEmpty();
2022-06-10 15:16:13 +02:00
//Getters
2022-06-13 15:03:51 +02:00
Pqueue queueGetNextE(Pqueue elem);
int queueGetCharLen(Pqueue elem);
char* queueGetTabChar(Pqueue elem);
2022-06-10 15:16:13 +02:00
//Setters
2022-06-13 15:03:51 +02:00
void queueSetCharLen(Pqueue elem, int _charLen);
void queueSetTabChar(Pqueue elem, int _charLen, const char *_tabChar);
void queueSetNextE(Pqueue elem , Pqueue next);
2022-06-10 15:50:27 +02:00
2022-06-13 15:03:51 +02:00
void queueAddLastQ(Pqueue elem, const char* str, int len);
2022-06-10 15:16:13 +02:00
//Removers
2022-06-13 15:03:51 +02:00
Pqueue queueRmLastE(Pqueue elem);
Pqueue queueRmFrstE(Pqueue elem);
Pqueue queueNextDelFrst(Pqueue elem);
2022-06-10 15:16:13 +02:00
//print function
2022-06-13 15:03:51 +02:00
void queuePrintE(Pqueue elem);
void queuePrintWholeQ(Pqueue firstE);