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

26 lines
587 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
Pqueue createE(int lenChar, const char* _tabChar);
Pqueue createEmpty();
2022-06-10 15:16:13 +02:00
//Getters
2022-06-10 15:05:04 +02:00
Pqueue getNextE(Pqueue elem);
2022-06-10 15:16:13 +02:00
Pqueue getNextE(Pqueue elem);
char * gettabChar(Pqueue elem);
//Setters
2022-06-10 15:05:04 +02:00
Pqueue setCharLen(Pqueue elem , int _charLen);
Pqueue setTabChar(Pqueue elem , int _charLen, const char *_tabChar);
2022-06-10 15:16:13 +02:00
Pqueue addLastQ(Pqueue elem, const char* str, int len);
//Removers
2022-06-10 15:05:04 +02:00
Pqueue rmLastE(Pqueue elem);
Pqueue rmFrstE(Pqueue elem);
2022-06-10 15:16:13 +02:00
2022-06-10 15:05:04 +02:00
Pqueue nextDelFrst(Pqueue elem);
2022-06-10 15:16:13 +02:00
Pqueue nextDelFrst(Pqueue elem);
//print function
2022-06-10 15:05:04 +02:00
void printE(Pqueue elem);